From 98495cafc3a7edd2a41e88d111ddb76e71e96226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 21 Jun 2012 18:59:49 +0200 Subject: [PATCH] [ol.Tile] an image is a HTMLImageElement --- src/ol/Tile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ol/Tile.js b/src/ol/Tile.js index e6eb5bb905..81a0946ff7 100644 --- a/src/ol/Tile.js +++ b/src/ol/Tile.js @@ -26,7 +26,7 @@ ol.Tile = function(url, bounds) { /** * @private - * @type {Element} + * @type {HTMLImageElement} */ this.img_ = ol.Tile.createImage(); goog.events.listenOnce(this.img_, goog.events.EventType.LOAD, @@ -66,7 +66,7 @@ ol.Tile.prototype.getBounds = function() { /** * Get the tile image. - * @return {Element} + * @return {HTMLImageElement} */ ol.Tile.prototype.getImg = function() { return this.img_; @@ -98,7 +98,7 @@ ol.Tile.prototype.destroy = function() { /** * Create an image node. This is done by cloning * the same image element. - * @return {Element} + * @return {HTMLImageElement} */ ol.Tile.createImage = (function() { var img = document.createElement("img");