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

Leaflet sub-directives should be prefixed #12

Open nmccready opened 8 years ago

nmccready commented 8 years ago

From @wayofspark on March 19, 2014 16:18

leaflet subdirective should be prefixed to avoid directive collision with other libs. Most dangerous directive is the 'legend' directive which require "^leaflet". Common directive names should be prefixed ( aka leafletLegend, lfLegend or any prefix ).

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

nmccready commented 8 years ago

From @tombatossals on March 20, 2014 15:35

You're totally right, I read an article about this after the directive was already released. :( Now it would break compatibility, but it would be not much problematic to solve.

Maybe we can think about prefixing the directives on a future release.

Thanks for sharing!