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
This commit is contained in:
crschmidt
2008-03-31 14:17:58 +00:00
parent f5af355a17
commit 8aa4af76e0

View File

@@ -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';
},
/**