IITC-CE / Leaflet.Canvas-Markers

Leaflet plugin for displaying icons on canvas instead of DOM
MIT License
2 stars 4 forks source link

The HTMLImageElement provided is in the 'broken' state #12

Closed johnd0e closed 5 years ago

johnd0e commented 5 years ago
VM2992:16252 Uncaught DOMException: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state.
    at NewClass._drawImage (<anonymous>:16252:23)
    at NewClass._drawMarker (<anonymous>:16239:22)
    at <anonymous>:16200:22
    at Array.forEach (<anonymous>)
    at NewClass._draw (<anonymous>:16179:16)
    at NewClass._redraw (<anonymous>:16077:18)
    at NewClass.fire (<anonymous>:1867:11)
    at NewClass._move (<anonymous>:5506:9)
    at NewClass._onZoomTransitionEnd (<anonymous>:5963:8)

Caused by broken icons (img load error), like here: https://github.com/IITC-CE/ingress-intel-total-conversion/issues/187

johnd0e commented 5 years ago

Fixed in https://github.com/IITC-CE/Leaflet.Canvas-Markers/commits/fixes