bbecquet / Leaflet.PolylineDecorator

A plug-in for the JS map library Leaflet, allowing to define patterns (like dashes, arrows, icons, etc.) on Polylines.
MIT License
492 stars 115 forks source link

Polyline decorator doesn't preserve the state of symbol styling #97

Open jcimoch opened 5 years ago

jcimoch commented 5 years ago

When we assign some event handler for click that will change the styling of symbol (for example to indicate that it is selected) as soon as we drag the map we loose that information as plugin is clearing internally featureGroup and redrawing it from scratch. Is there a way to preserve highlighted (clicked) symbol ?

miko866 commented 4 years ago

The same issue here.