L

Leaflet.GridLayer.FadeOut

A LeafletJS plugin to fade out grid and tile layers when they are removed

Name Last Update
.gitlab-ci.yml Loading commit data...
LICENSE Loading commit data...
Leaflet.GridLayer.FadeOut.js Loading commit data...
README.md Loading commit data...
demo.html Loading commit data...
package.json Loading commit data...

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/leaflet.gridlayer.fadeout@0.1.0/Leaflet.GridLayer.FadeOut.js'></script>

Legalese

"THE BEER-WARE LICENSE": ivan@sanchezortega.es 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.