Leaflet plugin to support pre-loading tiles outside the current viewport
JavaScript
Latest commit 043c22f Oct 12, 2016 @TolonUK committed on GitHub Updated README with package version widgets

README.md

Leaflet.EdgeBuffer Bower version npm version

Leaflet 1.0 plugin to support pre-loading tiles outside the current viewport.

Usage

Include Leaflet.EdgeBuffer.js. By default, a 1 tile buffer will be added beyond the viewport. To define a different buffer size use the options below.

Options

  • edgeBufferTiles: (number) The number of tiles that should be loaded beyond the edge of the map viewport. This may be a fractional number. Defaults to 1.

Demos

This demo shows two maps, one without this plugin active and one with.

License

Leaflet.loading is free software and may be redistributed under the MIT License.