Apply patch from John Cole to make closeBox show up in AnchoredBubble

popups. (Thanks John!) I like this solution better than hacking Rico.
Closes #698.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3149 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-05-15 21:10:13 +00:00
parent 2101eec18b
commit e4599ea06f
6 changed files with 27 additions and 8 deletions

View File

@@ -121,6 +121,7 @@ OpenLayers.Feature.prototype= {
},
/**
* @param {Boolean} closeBox create popup with closebox or not
* @returns A Popup Object created from the 'lonlat', 'popupSize',
* and 'popupContentHTML' properties set in this.data. It uses
* this.marker.icon as default anchor.
@@ -132,7 +133,7 @@ OpenLayers.Feature.prototype= {
*
* @type OpenLayers.Popup.AnchoredBubble
*/
createPopup: function() {
createPopup: function(closeBox) {
if (this.lonlat != null) {
@@ -143,7 +144,7 @@ OpenLayers.Feature.prototype= {
this.lonlat,
this.data.popupSize,
this.data.popupContentHTML,
anchor);
anchor, closeBox);
}
return this.popup;
},