Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing event 'tileerror' when failed to fetch #139

Open
hwernstrom opened this issue Jan 19, 2018 · 2 comments · May be fixed by #140
Open

Missing event 'tileerror' when failed to fetch #139

hwernstrom opened this issue Jan 19, 2018 · 2 comments · May be fixed by #140

Comments

@hwernstrom
Copy link

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.

@IvanSanchez
Copy link
Member

@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?

@hwernstrom
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants