From 843cfb208849d652da16e943247057cf5a251254 Mon Sep 17 00:00:00 2001
From: Ariel Costas Guerrero <ariel@costas.dev>
Date: Thu, 25 Dec 2025 02:10:25 +0100
Subject: Fix shit with map

---
 src/frontend/app/components/shared/AppMap.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/frontend/app/components/shared/AppMap.tsx')

diff --git a/src/frontend/app/components/shared/AppMap.tsx b/src/frontend/app/components/shared/AppMap.tsx
index adf860d..2c8d097 100644
--- a/src/frontend/app/components/shared/AppMap.tsx
+++ b/src/frontend/app/components/shared/AppMap.tsx
@@ -144,7 +144,7 @@ export const AppMap = forwardRef<MapRef, AppMapProps>(
           }
         }
       };
-    }, [syncState, updateMapState]);
+    }, [mapPositionMode, mapRef.current, updateMapState]);
 
     const getLatitude = (center: any) =>
       Array.isArray(center) ? center[0] : center.lat;
@@ -181,7 +181,7 @@ export const AppMap = forwardRef<MapRef, AppMapProps>(
     return (
       <Map
         ref={mapRef}
-        mapLib={maplibregl as any}
+        mapLib={maplibregl}
         mapStyle={mapStyle}
         style={{ width: "100%", height: "100%", ...style }}
         initialViewState={viewState}
-- 
cgit v1.3

