avlee, elemoine, and ahocevar point out that we should change the
initialization of the imageSrc property to be *before* we call the superclass. This pullup (Closes #1475), and is the last thing I'm going to touch before the 2.6 release. svn merge -r6749:6751 trunk branch. git-svn-id: http://svn.openlayers.org/branches/openlayers/2.6@6752 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -28,12 +28,6 @@ OpenLayers.Popup.FramedCloud =
|
|||||||
*/
|
*/
|
||||||
panMapIfOutOfView: true,
|
panMapIfOutOfView: true,
|
||||||
|
|
||||||
/**
|
|
||||||
* Property: imageSrc
|
|
||||||
* {String}
|
|
||||||
*/
|
|
||||||
imageSrc: null,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* APIProperty: imageSize
|
* APIProperty: imageSize
|
||||||
* {<OpenLayers.Size>}
|
* {<OpenLayers.Size>}
|
||||||
@@ -214,9 +208,9 @@ OpenLayers.Popup.FramedCloud =
|
|||||||
initialize:function(id, lonlat, size, contentHTML, anchor, closeBox,
|
initialize:function(id, lonlat, size, contentHTML, anchor, closeBox,
|
||||||
closeBoxCallback) {
|
closeBoxCallback) {
|
||||||
|
|
||||||
|
this.imageSrc = OpenLayers.Util.getImagesLocation() + 'cloud-popup-relative.png';
|
||||||
OpenLayers.Popup.Framed.prototype.initialize.apply(this, arguments);
|
OpenLayers.Popup.Framed.prototype.initialize.apply(this, arguments);
|
||||||
this.contentDiv.className = "olFramedCloudPopupContent";
|
this.contentDiv.className = "olFramedCloudPopupContent";
|
||||||
this.imageSrc = OpenLayers.Util.getImagesLocation() + 'cloud-popup-relative.png';
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user