overlapping-marker-spiderfier-leaflet

nearbyDistance=50 auf 20 gesetzt, weil beim klick auch weitere Stationen ändert dees Position. Radius um einen Marker, innerhalb dessen andere Marker gruppiert werden in Pixel
This commit is contained in:
ISA
2024-04-19 07:39:29 +02:00
parent fac46fea4b
commit 2cd3301f37

View File

@@ -271,7 +271,7 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
}).addTo(newMap); }).addTo(newMap);
const newOms = new window.OverlappingMarkerSpiderfier(newMap, { const newOms = new window.OverlappingMarkerSpiderfier(newMap, {
nearbyDistance: 50, nearbyDistance: 20, //Radius um einen Marker, innerhalb dessen andere Marker gruppiert werden in Pixel
}); });
setMap(newMap); setMap(newMap);