From 62f5502b022fab39a2ab5cd15805adeebbf43b8f Mon Sep 17 00:00:00 2001 From: ISA Date: Fri, 7 Jun 2024 14:35:41 +0200 Subject: [PATCH] Add yellow circle markers for intermediate points --- components/MapComponent.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/components/MapComponent.js b/components/MapComponent.js index d0dded82c..819eaab18 100644 --- a/components/MapComponent.js +++ b/components/MapComponent.js @@ -2101,10 +2101,21 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => { opacity: 1, fillOpacity: 0.8, }).addTo(map); + + // Add yellow circle markers for intermediate points + for (let i = 1; i < line.length - 1; i++) { + L.circleMarker(line[i], { + radius: 3, + fillColor: "#FFFF00", + color: "#FFFF00", + weight: 1, + opacity: 1, + fillOpacity: 0.8, + }).addTo(map); + } } }); }, [map, linePositions]); - //--------------------------------------------------------- return (