[ol.Tile] register to image error

This commit is contained in:
Éric Lemoine
2012-06-21 15:07:19 +02:00
parent 1dc6b04ac1
commit e72ab5135c

View File

@@ -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.