SkillAgentSearch skills...

Leaflet.EdgeBuffer

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

Install / Use

/learn @TolonUK/Leaflet.EdgeBuffer
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Leaflet.EdgeBuffer Bower version npm version

Leaflet v2 plugin to support pre-loading tiles outside the current viewport on GridLayer-based layers.

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.

  • https://tolonuk.github.io/Leaflet.EdgeBuffer/

Limitations

This plugin does not currently work with the GoogleMutant plugin. See issues https://gitlab.com/IvanSanchez/Leaflet.GridLayer.GoogleMutant/issues/27 and https://github.com/TolonUK/Leaflet.EdgeBuffer/issues/10.

License

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

View on GitHub
GitHub Stars91
CategoryCustomer
Updated2mo ago
Forks16

Languages

JavaScript

Security Score

95/100

Audited on Jan 21, 2026

No findings