diff --git a/src/ol/Tile.js b/src/ol/Tile.js index bead1d89d2..ec73bae3a4 100644 --- a/src/ol/Tile.js +++ b/src/ol/Tile.js @@ -30,7 +30,8 @@ ol.Tile = function(url, bounds) { this.img_ = ol.Tile.createImage(); goog.events.listenOnce(this.img_, goog.events.EventType.LOAD, this.handleImageLoad, false, this); - + goog.events.listenOnce(this.img_, goog.events.EventType.ERROR, + this.handleImageError, false, this); }; /** @@ -70,6 +71,12 @@ ol.Tile.prototype.getImg = function() { ol.Tile.prototype.handleImageLoad = function() { }; +/** + * + */ +ol.Tile.prototype.handleImageError = function() { +}; + /** * Create an image node. This is done by cloning * the same image element.