From e588e0f41e26353dd5425150225817cc52fab4bf Mon Sep 17 00:00:00 2001
From: Yuval Adam <_@yuv.al>
Date: Thu, 1 Sep 2022 17:09:54 +0300
Subject: No need to save map state

---
 src/Map.tsx | 6 ------
 1 file changed, 6 deletions(-)

(limited to 'src/Map.tsx')

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(() => {
-- 
cgit v1.3.1

