added Missing rescuetrack layerx

This commit is contained in:
PxlLoewe
2025-06-01 12:24:07 -07:00
parent 55e44d9cde
commit 9826f970d8
7 changed files with 518 additions and 56 deletions

View File

@@ -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]);