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 can I access a control? #6

Open nmccready opened 9 years ago

nmccready commented 9 years ago

From @milovanderlinden on October 28, 2015 20:2

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

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

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.

nmccready commented 9 years ago

From @milovanderlinden on October 28, 2015 23:46

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

Closing to attempt bulk issue migration via https://github.com/IQAndreas/github-issues-import

nmccready commented 9 years ago

nvm the app does not work well