Grayscale TileLayer for Leaflet
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Zverik Merge pull request #15 from nadgerz/master
protect against options parameter not being supplied, as in L.tileLay…
Latest commit 3090e5a Nov 1, 2017

README.md

Leaflet.TileLayer.Grayscale

A regular TileLayer with grayscale makeover.

Usage

Just use L.tileLayer.grayscale(url, options) instead of L.tileLayer(url, options).

I recommend using fadeAnimation: false option when creating the map object. Otherwise you will see a lot of flickering.

Example

http://zverik.github.com/leaflet-grayscale/

License

This plugin was written by Ilya Zverev and published under WTFPL license.