From 5a8b116d109c1aaaeda46bd1554f0cd604e6ed8d Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 30 Apr 2009 22:07:26 +0000 Subject: [PATCH] To abort loading of any previous image when we destroy the image tile, we set the src to the location of blank.gif. r=crschmidt (pullup #1978) git-svn-id: http://svn.openlayers.org/trunk/openlayers@9334 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Tile/Image.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Tile/Image.js b/lib/OpenLayers/Tile/Image.js index d500bd57dc..ac89ed2cf7 100644 --- a/lib/OpenLayers/Tile/Image.js +++ b/lib/OpenLayers/Tile/Image.js @@ -122,7 +122,8 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, { this.imgDiv.map = null; } this.imgDiv.urls = null; - this.imgDiv.src = null; + // abort any currently loading image + this.imgDiv.src = OpenLayers.Util.getImagesLocation() + "blank.gif"; } this.imgDiv = null; if ((this.frame != null) && (this.frame.parentNode == this.layer.div)) {