From 8aa4af76e0e5d763ac97328d0c3061d90758296d Mon Sep 17 00:00:00 2001 From: crschmidt Date: Mon, 31 Mar 2008 14:17:58 +0000 Subject: [PATCH] Calculating the FramedCloud path at load time leads to not respecting the ImgPath variable if it is set, because it can't be set before the OpenLayers.js file is loaded. Move ImgPath calculation into initialize(), so that it is picked up correctly. Thanks, fvanderbiest! (Closes #1473) git-svn-id: http://svn.openlayers.org/trunk/openlayers@6734 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Popup/FramedCloud.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Popup/FramedCloud.js b/lib/OpenLayers/Popup/FramedCloud.js index c9fc2d8755..f99eaa250e 100644 --- a/lib/OpenLayers/Popup/FramedCloud.js +++ b/lib/OpenLayers/Popup/FramedCloud.js @@ -32,7 +32,7 @@ OpenLayers.Popup.FramedCloud = * Property: imageSrc * {String} */ - imageSrc: OpenLayers.Util.getImagesLocation() + 'cloud-popup-relative.png', + imageSrc: null, /** * APIProperty: imageSize @@ -216,6 +216,7 @@ OpenLayers.Popup.FramedCloud = OpenLayers.Popup.Framed.prototype.initialize.apply(this, arguments); this.contentDiv.className = "olFramedCloudPopupContent"; + this.imageSrc = OpenLayers.Util.getImagesLocation() + 'cloud-popup-relative.png'; }, /**