Feature: add a 'error' event to ImageOverlay
See original GitHub issueAs per https://stackoverflow.com/questions/41841381/leaflet-imagelayer-seturl-error-handling , it should be useful to have a error
event in L.ImageOverlay
, akin to the tileerror
event in L.TileLayer
.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Leaflet ImageLayer setUrl error handling - Stack Overflow
I have been using setUrl to dynamically change/update the image loaded in a Leaflet pane using ImageOverlay. Is there an error handling function...
Read more >Switching leaflet image overlay layers shows white blinks
It looks like the "load" event (fired by the added overlay image) is fired before the load completes. mymap.addLayer(overlay[newlyr]); overlay[ ...
Read more >Documentation - a JavaScript library for interactive maps
locationerror, ErrorEvent, Fired when geolocation (using the locate method) ... Adds a new Handler to the map, given its name and constructor function....
Read more >Child components | React Leaflet
LeafletEventHandlerFnMap prop, adding and removing event listeners. ... Applies to components using Leaflet's ImageOverlay class, adding support for mutable ...
Read more >Class ImageOverlay - ArcGIS Developers
Currently, this feature is supported in a SceneView (3D) only. The overlay can contain exactly one image at any given time. Multiple overlays,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@AP-whitehat Please open up a pull request, so we can comment on specific lines of your code 😃
@AP-whitehat yes, exactly. From a quick look, an error handler should probably be added in
_initImage
.(Apparently @IvanSanchez wrote a response quicker than I did 😄 )