Extends Leaflet.Map to automatically substitute polygons and lines with markers when their screen size falls below a defined threshold.
Initialize along with the minSize. minSize defines the minimum width and height in pixels for a Path to be displayed in its actual shape.
var map = L.map.deflate('map', {minSize: 20})
All options and methods from Leaflet.Map are inherited.
You'll need to install the dev dependencies to test and write the distribution file.
npm install
To run tests:
gulp test
To write a minified JS into dist:
gulp dist
Apache 2.0