Leaflet / Leaflet.VectorGrid

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

How to remove many excepition tips in console #241

Open liyihongcug opened 4 years ago

liyihongcug commented 4 years ago

Errors are below var vectorTile = new L.vectorGrid.protobuf(vectorLayerUrl, getVectorOptions('name

Google browser said it can't find some pbf file but That can't impact web applicton which run normally. But whether can Those terrible tip be removed in order to good user experience?

IvanSanchez commented 4 years ago

I do not understand what you mean.

liyihongcug commented 4 years ago

leaflet.html:1 Uncaught (in promise) TypeError: Failed to fetch------------- console information Promise.then (async) createTile @ Leaflet.VectorGrid.js:362 _addTile @ leaflet.js:5 _update @ leaflet.js:5 _setView @ leaflet.js:5 _resetView @ leaflet.js:5 onAdd @ leaflet.js:5 _layerAdd @ leaflet.js:5 whenReady @ leaflet.js:5 addLayer @ leaflet.js:5 addTo @ leaflet.js:5 (anonymous) @ leaflethtml:432

IvanSanchez commented 4 years ago

So, what resource did it failed to fetch? Network monitor and browser debugging tools are your friends.