angular-ui / ui-leaflet

AngularJS directive to embed an interact with maps managed by Leaflet library
http://angular-ui.github.io/ui-leaflet
Other
314 stars 134 forks source link

How to remove a layer, changing layer settings does not update layer. #46

Open nmccready opened 9 years ago

nmccready commented 9 years ago

From @SjRNMzU on January 27, 2015 20:20

I'm registering a callback into leaflet zoom event to change part of my my map.layers.overlays.heatmap object however leaflet does not redraw the layer. I've tried setting the layers.overlays.heatmap to null and deleting it but nothing works.

Copied from original issue: tombatossals/angular-leaflet-directive#620

nmccready commented 9 years ago

From @tombatossals on June 30, 2015 17:53

Please, can you provide a working example and I will take a look?

https://github.com/tombatossals/angular-leaflet-directive/wiki/MCVE