Leaflet / Leaflet.VectorGrid

Display gridded vector data (sliced GeoJSON or protobuf vector tiles) in Leaflet 1.0.0
591 stars 192 forks source link

Some tiles not rendering #262

Open jbogdani opened 3 years ago

jbogdani commented 3 years ago

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

timbtimbtimb commented 2 years ago

I have a similar problem: https://timotheebilliet.fr/htdocs/

I don't understand why the tiles won't load properly. I checked on QGIS and the pbf are fine, no tile is missing. There seem to be some very funky errors in the console.

jbogdani commented 2 years ago

I ended up using maplibre.org which worked wonderfully...