Leaflet / Leaflet.VectorGrid

Display gridded vector data (sliced GeoJSON or protobuf vector tiles) in Leaflet 1.0.0
593 stars 192 forks source link

Tiles with maxNativeZoom disappear when I scroll-zoom too fast. #218

Open StefanBrand opened 4 years ago

StefanBrand commented 4 years ago

I have this vector grid layer with maxNativeZoom: 16. When I zoom to level 16, wait until all tiles at that level are loaded and then zoom in to 17 or 18: No problem, tiles are scaled up from zoom 16.

When I go to zoom = 15 and then zoom in quickly to zoom = 17 or zoom = 18 (overstepping 16), tiles disappear. When I then zoom out to zoom = 16, the respective tiles that were missing at higher zoomlevels are not loaded.

Here is a demo: http://lpvis-demo.s3-website.eu-central-1.amazonaws.com/ You can observe the current zoom level in the console.

Edit: Please don't get distracted by some 404 not found messages in the console. These are areas that do not have tiles because there are no polygons there.