diff options
| author | Yuval Adam <_@yuv.al> | 2022-09-01 17:09:54 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2022-09-01 17:09:54 +0300 |
| commit | e588e0f41e26353dd5425150225817cc52fab4bf (patch) | |
| tree | 9499d27420bf3dd7d37d82b48dc9aa81642193cf /src/Map.tsx | |
| parent | 842c3ecb7c784f7c702c6ce73f5357154247bcd0 (diff) | |
No need to save map state
Diffstat (limited to 'src/Map.tsx')
| -rw-r--r-- | src/Map.tsx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/Map.tsx b/src/Map.tsx index 588f5c4..590f80d 100644 --- a/src/Map.tsx +++ b/src/Map.tsx @@ -43,12 +43,6 @@ export function Map({ slider, images }: MapProps) { map.current.on("style.load", () => { setLoaded(true); }); - - map.current.on("move", () => { - setLng(map.current.getCenter().lng.toFixed(4)); - setLat(map.current.getCenter().lat.toFixed(4)); - setZoom(map.current.getZoom().toFixed(2)); - }) }); useEffect(() => { |
