Leaflet / Leaflet/Leaflet.VectorGrid
Fractional Zoomlevel and Clickhandler
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 676
- Forks
- 202
- PR merge metrics
- No merged PRs in 30d
Description
I'm using Leaflet 1.3.1 - because https://github.com/Leaflet/Leaflet/issues/6245 - and VectorGrid 1.3.0 for mvt with L.canvas.tile as rendererFactory.
The defined click-handler works as expected only if zoomlevel is integer (6, 5, 19, ..). If zoomlevel gets fractional (6.25, 10.75, ...), mousepointer change back to normal and click on a feature does nothing.
Looks like a bug?
Edit: With rendererFactory: L.svg.tile it's ok!
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
Reproduce the issue with Leaflet 1.3.1 and VectorGrid 1.3.0 using MVT, L.canvas.tile, and fractional zoom levels such as 6.25 or 10.75. Compare the behavior with L.svg.tile; done means the pointer and click handler work on features at fractional zoom as they do at integer zoom.
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