aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/components
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-12-25 02:10:25 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-12-25 02:10:25 +0100
commit843cfb208849d652da16e943247057cf5a251254 (patch)
treefc082f90ec7872c293aca5f9dc2dc998ff66d69d /src/frontend/app/components
parent800fd816132c38617b2cc16f4eecf95f38d09841 (diff)
Fix shit with map
Diffstat (limited to 'src/frontend/app/components')
-rw-r--r--src/frontend/app/components/shared/AppMap.tsx4
1 files changed, 2 insertions, 2 deletions
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}