Leaflet / Leaflet/Leaflet.VectorGrid

Some tiles not rendering

Open
#262 3 comments 0 reactions 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

Hello,
I'm having issues with some tiles in some zoom layers not rendering. I'm running Leaflet.VectorGrid.bundled v. 1.3.0 and Leaflet 1.7.1 and I'm getting in the console the following error messages (eg.: https://xyz.paths-erc.eu/paths-places-68/):

Uncaught (in promise) Error: unknown command 3
    at VectorTileFeature$2.loadGeometry (vectortilefeature.js:81)
    at Leaflet.VectorGrid.Protobuf.js:141
Uncaught (in promise) Error: unknown command 4
    at VectorTileFeature$2.loadGeometry (vectortilefeature.js:81)
    at Leaflet.VectorGrid.Protobuf.js:141

and

Uncaught (in promise) Error: unknown command 0
    at VectorTileFeature$2.loadGeometry (vectortilefeature.js:81)
    at Leaflet.VectorGrid.Protobuf.js:141

PBFs are created with QGIS, and I'm able to correctly load single tiles, for each zoom layer, so I guess the issue is with the visualization, but any hint about further debugging is most welcomed.

I have also tried to reset styling options, obtaining no better results.

image

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 reproducing the rendering failure with the provided QGIS-generated PBFs and inspect the stack trace locations in vectortilefeature.js:81 and Leaflet.VectorGrid.Protobuf.js:141. Compare tiles that render with those producing unknown commands 0, 3, or 4; done means the affected zoom layers render without geometry-decoding errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.