diff --git a/src/app/components/map/LeafLetMap.js b/src/app/components/map/LeafLetMap.js index 434b441..fa2dbe6 100644 --- a/src/app/components/map/LeafLetMap.js +++ b/src/app/components/map/LeafLetMap.js @@ -28,6 +28,7 @@ function goToRegion(mapRef, { lat, long, zoom }) { const code_to_function = { "1": clickCallback, "2": markerCallback, + "3": moveEndCallback, }; function clickCallback(payload) { @@ -44,6 +45,12 @@ function markerCallback(payload) { }; } +function moveEndCallback(payload) { + return { + object: "moveend", + id: payload.content, + }; +} function handleEvent(event) { const payload = JSON.parse(event.nativeEvent.data); return code_to_function[payload.code](payload); diff --git a/src/app/components/map/Map.html b/src/app/components/map/Map.html index 4d01be9..64b12a5 100644 --- a/src/app/components/map/Map.html +++ b/src/app/components/map/Map.html @@ -1,87 +1,102 @@ -
-