Leaflet.VectorGrid icon indicating copy to clipboard operation
Leaflet.VectorGrid copied to clipboard

Missing event 'tileerror' when failed to fetch

Open hwernstrom opened this issue 8 years ago • 2 comments

Missing event 'tileerror' when failed to fetch. This is part of the the base L.gridLayer events when a tile has an error it should call the tileerror event.

hwernstrom avatar Jan 19 '18 15:01 hwernstrom

@hwernstrom It's difficult to know what's going on in your case. I'm going to guess you're using protobuf tiles (instead of a GeoJSON slicer), and that your tiles are failing to fetch due to HTTP errors.

The changes at #140 should fix those, and we could use a hand testing if those changes actually cover your error cases.

If you're encountering different errors, could you please elaborate?

IvanSanchez avatar Jan 19 '18 15:01 IvanSanchez

I'm creating the pbf tiles server-side for only where there is data. I want to add a check to see if new data exist where it didn't previously cache. Right now I have no way of retrieving the 404 error and handling it by calling the server to create that pbf.

This is in the L.VectorGrid.Protobuf fetch call. I'm trying to fix and send a pull request.

hwernstrom avatar Jan 19 '18 17:01 hwernstrom