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:
@@ -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';
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user