Leaflet / Leaflet/Leaflet.VectorGrid
Tiles with maxNativeZoom disappear when I scroll-zoom too fast.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 676
- Forks
- 202
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked demo and reproduce the sequence from zoom 15 to 17 or 18 without waiting at zoom 16, then zoom back to 16. Trace the vector grid layer's tile loading and zoom handling; done means tiles remain visible when maxNativeZoom is overstepped and load correctly after zooming back.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100