Open Vasilia-Themis opened 1 month ago
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 https://github.com/Leaflet/Leaflet/issues/137 and https://github.com/Leaflet/Leaflet/pull/5615 .
Not sure if we want to revisit this?
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