Leaflet / Leaflet/Leaflet.VectorGrid
Do not render tiles during a pinch-zoom
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 676
- Forks
- 202
- PR merge metrics
- No merged PRs in 30d
Description
Behaviour of Leaflet's L.GridLayer in 1.0.0 means that tiles are queried whenever the zoom level changes by one full integer. In return, this means re-rendering the vector tiles into canvases (or SVGs) at every integer zoom level - this takes time and makes the pinch-zoom sluggish.
It should be not too difficult to wait for a zoomend to render the vector tiles.
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 by reading Leaflet's L.GridLayer zoom behavior and the VectorGrid path that renders tiles into canvases or SVGs. Trace how zoom changes trigger rendering, then verify that rendering waits until zoomend and that pinch-zoom no longer re-renders at each integer zoom level.
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
- 42/100