[ol.Tile] register to image error
This commit is contained in:
+8
-1
@@ -30,7 +30,8 @@ ol.Tile = function(url, bounds) {
|
|||||||
this.img_ = ol.Tile.createImage();
|
this.img_ = ol.Tile.createImage();
|
||||||
goog.events.listenOnce(this.img_, goog.events.EventType.LOAD,
|
goog.events.listenOnce(this.img_, goog.events.EventType.LOAD,
|
||||||
this.handleImageLoad, false, this);
|
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.handleImageLoad = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
ol.Tile.prototype.handleImageError = function() {
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an image node. This is done by cloning
|
* Create an image node. This is done by cloning
|
||||||
* the same image element.
|
* the same image element.
|
||||||
|
|||||||
Reference in New Issue
Block a user