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:
@@ -271,7 +271,7 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
|
||||
}).addTo(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);
|
||||
|
||||
Reference in New Issue
Block a user