leaflet-tile-loading-progress-control
A leaflet control that indicates tile loading progress for a group of tile layers. This can be useful when you have a lot of tile layers or tiles that frequently refresh.
My particualar use case was for a looping precipitation radar that was built using ten tile layers that each needed to be updated every five minutes. Zooming and panning the map causes a lot of tile requests to be sent out. These can take a second to load and in the meantime I didn't want the end user to think the map was breaking.
Usage
;; const tileLayer1 = Lconst tileLayer2 = L; const tileLayers = L; const tileLoadingProgress = leafletElt: tileLayers position: 'bottomleft';tileLoadingProgress;
Options
Option | Type | Description |
---|---|---|
leafletElt |
Leaflet LayerGroup | Group of tile layers tracked by the loading progress control. |
Example GIF
from https://us-weather-monitor.herokuapp.com/