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

How can I access a control? #1011

Closed milovanderlinden closed 9 years ago

milovanderlinden commented 9 years ago

I have a custom button, somewhere in my angular bootstrap-ui page. From this button, I want to show or hide the minimap.

I know that leaflet has no way of telling which controls are loaded in the map, but does your wonderful directive offers this option?

For the history control I ended up declaring it in my controller and then accessing it's functions.

screenshot from 2015-10-28 20-59-52

nmccready commented 9 years ago

I'd have to dig into this as I actually wanted to do the same thing. However, currently I am hiding it with css.

milovanderlinden commented 9 years ago

That is indeed a fine solution for now! I will use that too. Thank you!

2015-10-28 21:19 GMT+01:00 nmccready notifications@github.com:

I'd have to dig into this as I actually wanted to do the same thing. However, currently I am hiding it with css.

— Reply to this email directly or view it on GitHub https://github.com/tombatossals/angular-leaflet-directive/issues/1011#issuecomment-151978098 .

[image: http://www.dogodigi.net] http://www.dogodigi.net Milo van der Linden web: dogodigi http://www.dogodigi.net tel: +31-6-16598808

nmccready commented 9 years ago

This issue was moved to angular-ui/ui-leaflet#6

nmccready commented 9 years ago

Actually besides being migrated this was resolved as well.