A plugin for LeafletJS to fade out grid layers when removed.
Fading out base gridlayers makes switching baselayers much smoother to the naked eye. See the demo!
Tested with Leaflet 1.0.0-rc3. Do not expect this to work in Leaflet 0.7.x.
This Leaflet plugin is completely transparent, and adds no extra methods or options.
To use it, simply make sure that you have some gridlayers / tilelayers that are removed from the map. This can be done by using a layers control with several base layers.
npm install leaflet.gridlayer.fadeout
Usage through unpkg
"THE BEER-WARE LICENSE": email@example.com wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.