Leaflet / Leaflet/Leaflet.VectorGrid

Do not render tiles during a pinch-zoom

Open
#2 0 comments 1 reaction 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.