From 1dc6b04ac191af6e46ca19560c0760def39b50c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 21 Jun 2012 15:03:59 +0200 Subject: [PATCH] [ol.Tile] register to image load --- src/ol/Tile.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ol/Tile.js b/src/ol/Tile.js index c8445fefd9..bead1d89d2 100644 --- a/src/ol/Tile.js +++ b/src/ol/Tile.js @@ -1,5 +1,6 @@ goog.provide('ol.Tile'); +goog.require('goog.events'); goog.require('ol.Bounds'); /** @@ -27,6 +28,9 @@ ol.Tile = function(url, bounds) { * @type {Element} */ this.img_ = ol.Tile.createImage(); + goog.events.listenOnce(this.img_, goog.events.EventType.LOAD, + this.handleImageLoad, false, this); + }; /** @@ -60,6 +64,12 @@ ol.Tile.prototype.getImg = function() { return this.img_; }; +/** + * + */ +ol.Tile.prototype.handleImageLoad = function() { +}; + /** * Create an image node. This is done by cloning * the same image element.