diff options
Diffstat (limited to 'src/frontend/app/components')
| -rw-r--r-- | src/frontend/app/components/shared/AppMap.tsx | 4 |
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} |
