Add yellow circle markers for intermediate points
This commit is contained in:
@@ -2101,10 +2101,21 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|||||||
opacity: 1,
|
opacity: 1,
|
||||||
fillOpacity: 0.8,
|
fillOpacity: 0.8,
|
||||||
}).addTo(map);
|
}).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]);
|
}, [map, linePositions]);
|
||||||
|
|
||||||
//---------------------------------------------------------
|
//---------------------------------------------------------
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user