tombatossals / angular-leaflet-directive

AngularJS directive to embed an interact with maps managed by Leaflet library
http://tombatossals.github.io/angular-leaflet-directive
MIT License
1.5k stars 635 forks source link

Paths data problem with layers #584

Closed ValentinH closed 9 years ago

ValentinH commented 9 years ago

I have noticed a behaviour that seems to be a bug when using path along with layers. However, I'm not sure if it is a problem on leaflet side or on this directive side.

When displaying paths in a group layer, and modifying the paths data, if I hide and show again the layer, the displayed paths are incorrect.

Here is a fiddle: http://jsfiddle.net/7au1sy91/.

To reproduce:

tombatossals commented 9 years ago

Hi @ValentinH you're totally right, it was a bug in the path/layerGroup management. Now I think it's solved. I have created an example based on your jsfiddle here:

http://tombatossals.github.io/angular-leaflet-directive/examples/path-change-in-group-layer.html

Thanks for reporting

ValentinH commented 9 years ago

Great! Thanks for being this quick!