From 2cd3301f374b9f48ae8cb74ba966c0b8af5bdf30 Mon Sep 17 00:00:00 2001 From: ISA Date: Fri, 19 Apr 2024 07:39:29 +0200 Subject: [PATCH] =?UTF-8?q?overlapping-marker-spiderfier-leaflet=20nearbyD?= =?UTF-8?q?istance=3D50=20auf=2020=20gesetzt,=20weil=20beim=20klick=20auch?= =?UTF-8?q?=20weitere=20Stationen=20=C3=A4ndert=20dees=20Position.=20Radiu?= =?UTF-8?q?s=20um=20einen=20Marker,=20innerhalb=20dessen=20andere=20Marker?= =?UTF-8?q?=20gruppiert=20werden=20in=20Pixel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/MapComponent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/MapComponent.js b/components/MapComponent.js index 50e986a21..f679936a9 100644 --- a/components/MapComponent.js +++ b/components/MapComponent.js @@ -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);