added Missing rescuetrack layerx
This commit is contained in:
@@ -18,27 +18,6 @@ const Map = () => {
|
||||
// Sync map zoom and center with the map store
|
||||
if (ref.current) {
|
||||
ref.current.setView(map.center, map.zoom);
|
||||
/* ref.current.on("moveend", () => {
|
||||
const center = ref.current?.getCenter();
|
||||
const zoom = ref.current?.getZoom();
|
||||
if (center && zoom) {
|
||||
setMap({
|
||||
center: [center.lat, center.lng],
|
||||
zoom,
|
||||
});
|
||||
}
|
||||
});
|
||||
ref.current.on("zoomend", () => {
|
||||
const zoom = ref.current?.getZoom();
|
||||
const center = ref.current?.getCenter();
|
||||
|
||||
if (zoom && center) {
|
||||
setMap({
|
||||
center,
|
||||
zoom,
|
||||
});
|
||||
}
|
||||
}); */
|
||||
}
|
||||
}, [map, setMap]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user