You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vasilia-Themis
changed the title
"An error occurred trying to load the resource" - publishes tileerror event when no visible missing tile
"An error occurred trying to load the resource" - error in network tab when no visible missing tile
Apr 3, 2024
That URL is the one for a 1x1 transparent gif image (gosh, knowing that fact makes me a nerd). In the leaflet codebase it lives at L.Util.emptyImageURL, and is set into tiles at:
It has no ill effect besides that warning. It's done for historical reasons: destroying a non-completely-loaded HTMLImageElement used to crash the Android stock browser. See #137 and #5615 .
Thank you for the quick reply @IvanSanchez. It seems to be linked with the publishing of a tileerror event on the TileLayer, which is causing us problems. This only happens intermittently so I'm not confident of the link. Does that sound plausible?
But this is a non-issue anyway. The Safari dev tools are failing to display an image coming from a data: URL, which is different than "an image is causing an error" (since there are no errors/warnings in your console anyway).
If you have something about tileerror, then that's a different issue. Let's stick to this one.
Checklist
Steps to reproduce
Bug reproduced on a number of different iOS devices
Unable to reproduce on Android or desktop
data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=
or similarExpected behavior
Current behavior
data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=
or similarMinimal example reproducing the issue
https://plnkr.co/edit/YiUS1lMzYAIZwLUs?preview
Environment
The text was updated successfully, but these errors were encountered: