Leaflet: Feature: add a 'error' event to ImageOverlay

Created on 25 Jan 2017  路  6Comments  路  Source: Leaflet/Leaflet

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.

feature good first issue help wanted

Most helpful comment

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

All 6 comments

Looking into this issue.
The problem is in
https://github.com/Leaflet/Leaflet/blob/master/src/layer/ImageOverlay.js
I suppose ... ?

@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 :smile: )

Issue not yet Fixed ,
am I going in the right direction ?

please point out my mistakes 馃槢

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

Closed by #5307!

Was this page helpful?
0 / 5 - 0 ratings