leaflet.gridlayer.fadeout
v0.1.0
Published
A plugin for LeafletJS to to fade out grid layers when removed.
Downloads
778
Readme
Leaflet.GridLayer.FadeOut
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.
API
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.
Installation through npm
npm install leaflet.gridlayer.fadeout
Usage through unpkg
<script src='https://unpkg.com/[email protected]/Leaflet.GridLayer.FadeOut.js'></script>
Legalese
"THE BEER-WARE LICENSE": [email protected] 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.