Leaflet.PolylineDecorator
Leaflet.PolylineDecorator copied to clipboard
how do i delete some arrow on the map
I use polylineDecorator to draw a lot of arrow on the line, if I want delete some arrow that I don't want to display on the map; I only want to delete some draw , it isn't all of arrow , I don't use clear() to clear, i need some draw on the map; can i use what function() to move some arrow from the map thanks
When you create a polyline with a decorator you have to add the leaflet id of the polyline to a decorator. Now you know which polyline have which decorator. Then you have to write custom draw:delete function where you have to check by leaflet id which decorator belongs to which object.