Leaflet.PolylineDecorator icon indicating copy to clipboard operation
Leaflet.PolylineDecorator copied to clipboard

how do i delete some arrow on the map

Open zhangyan2009 opened this issue 4 years ago • 1 comments

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

zhangyan2009 avatar Apr 20 '20 02:04 zhangyan2009

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.

miko866 avatar May 27 '20 17:05 miko866