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 637 forks source link

Add/Remove Layers #298

Closed bojanvidanovic closed 9 years ago

bojanvidanovic commented 10 years ago

Can you make an example how can i add or remove layers with html button instead of leaflet icon? Thank you for great work.

tombatossals commented 10 years ago

Hi, you have this example with the functionality you say: http://tombatossals.github.io/angular-leaflet-directive/examples/layers-example.html

I have to make a new one, simplified, when I have time.

bojanvidanovic commented 10 years ago

Yep, that was i was looking for. Thanks!

tombatossals commented 10 years ago

I finally managed to create a simpler example of adding/removing baselayers/overlays:

http://tombatossals.github.io/angular-leaflet-directive/examples/layers-add-remove.html