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

extra params on defaults #58

Open nmccready opened 9 years ago

nmccready commented 9 years ago

From @kamalhg on May 20, 2015 11:48

Hi,

in leaflet, some user defined controls have the capability to add and initialize the control in the options object while creating the map. but in leaflet-directive you are restricting the parameters passed in the defaults object. is there any way to pass any other user defined parameter to the map.

Best Regards, Kamal

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

nmccready commented 9 years ago

From @tombatossals on June 28, 2015 16:23

Hi, the "defaults" object is used only to override the most common attributes, so creating a new map with common options is easier. If you think there are useful options that need to be managed in the defaults options just propose it, I added only those which I use more.

If you could be more specific about these options, or provide an example, I can add them. Better if you send a PR by yourself, of course.