question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: add a 'error' event to ImageOverlay

See original GitHub issue

As 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:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
IvanSanchezcommented, Feb 3, 2017

@AP-whitehat Please open up a pull request, so we can comment on specific lines of your code 😃

2reactions
perliedmancommented, Feb 3, 2017

@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 😄 )

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found