Leaflet / Leaflet/Leaflet.VectorGrid
An error caused when using GeomType = 0 (UNKNOWN)
Open
Nobody has claimed this yet.
need more info
- Dominant language
- JavaScript
- Stars
- 676
- Forks
- 202
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
When using a tile with GeomType = 0 (UNKNOWN), L.vectorGrid.protobuf says
Leaflet.VectorGrid.js:113 Uncaught (in promise) TypeError: Cannot read property 'render' of undefined
But I think L.vectorGrid.protobuf should regard it as no content as MapboxGL does.
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 at Leaflet.VectorGrid.js:113 and reproduce the error with a tile whose GeomType is 0 (UNKNOWN). Trace the protobuf vector-grid rendering path and verify that UNKNOWN geometry is treated as having no content, without attempting to call render on an undefined renderer.
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
- 45/100