angular-ui / ui-leaflet

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

Where is documentation, controls API? #109

Open nmccready opened 8 years ago

nmccready commented 8 years ago

From @vko-online on September 9, 2015 10:8

I've been struggling with this repo for a long time, 0 docs For now i want to add controls to map (this repo contains fullscreen, minimap, etc). But how do we use it. The main problem is: Where do i look for controls, in leaflet repo or this repo? Also 0 demo about controls/custom-controls, indeed it's very important feature And why API for this directive is so strange? angular.extend($scope, {}) things look very messy

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

nmccready commented 8 years ago

From @simison on September 10, 2015 8:25

angular.extend($scope, {}) things look very messy

That's subjective: http://toddmotto.com/a-better-way-to-scope-angular-extend-no-more-vm-this/ ;-)

Although I got rid of it myself as well as I prefer vm. format.