Add image loading events to image sources

This commit is contained in:
Bart van den Eijnden
2015-03-03 19:53:32 +01:00
parent 3a7b9751d7
commit 4569858882
8 changed files with 294 additions and 1 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ ol.renderer.Layer.prototype.loadImage = function(image) {
// listener (a noop if the listener was already registered)
goog.asserts.assert(imageState == ol.ImageState.IDLE ||
imageState == ol.ImageState.LOADING);
goog.events.listenOnce(image, goog.events.EventType.CHANGE,
goog.events.listen(image, goog.events.EventType.CHANGE,
this.handleImageChange_, false, this);
}
if (imageState == ol.ImageState.IDLE) {