diff --git a/src/app/components/map/LeafLetMap.js b/src/app/components/map/LeafLetMap.js index 02857de..a305bc2 100644 --- a/src/app/components/map/LeafLetMap.js +++ b/src/app/components/map/LeafLetMap.js @@ -21,10 +21,9 @@ const loadHTMLFile = async () => { return loadLocalAsset(HTML_FILE_PATH); }; -function goToRegion(mapRef, { lat, long, zoom }) { - +function goToRegion(mapRef, position) { mapRef.injectJavaScript(` - map.setView([${lat}, ${long}], ${zoom});`); + setCustomView(${position.lat}, ${position.long}, 16.5);`); } const code_to_function = { diff --git a/src/app/components/map/Map.html b/src/app/components/map/Map.html index 41ee6d1..fe26386 100644 --- a/src/app/components/map/Map.html +++ b/src/app/components/map/Map.html @@ -1,105 +1,112 @@ +
+