aebadirad / Leaflet.AutoLayers

A dynamic leaflet layers control that pulls from multiple mapservers and manages basemaps and overlays plus order
MIT License
31 stars 21 forks source link

Opacity Control - Using Bootstrap Popover #10

Open diegomonteiro opened 7 years ago

diegomonteiro commented 7 years ago

I suggest creating an opacity control for the layers using the Popover of the Boostrap library to enrich the functionality of AutoLayers.

Inspirations:

aebadirad commented 7 years ago

I'm not really wanting to introduce a new framework like bootstrap into this plugin, though with an upgrade to 1.0, I think I do need to add some opacity controls for the layers.

Is there any preference for how to 'set' the transparencies? I assume user-controlled transparencies with a default transparency option for overlays in the config is desired?

diegomonteiro commented 7 years ago

Ok, I suggest only set opacity through api or parameters defined by user.