diff --git a/lib/OpenLayers/Popup.js b/lib/OpenLayers/Popup.js index c064e3f7a4..3d4e3e8548 100644 --- a/lib/OpenLayers/Popup.js +++ b/lib/OpenLayers/Popup.js @@ -19,6 +19,9 @@ OpenLayers.Popup.prototype = { /** reference to the parent DIV to which this popup is @type DOMElement */ parent: null, + /** @type OpenLayers.LonLat */ + lonlat: null, + /** @type DOMElement */ div: null, @@ -42,13 +45,14 @@ OpenLayers.Popup.prototype = { * @constructor * * @param {String} id + * @param {OpenLayers.LonLat} lonlat * @param {OpenLayers.Size} size * @param {String} contentHTML */ - initialize:function(id, size, contentHTML) { + initialize:function(id, lonlat, size, contentHTML) { OpenLayers.Popup.count += 1; - this.id = (id != null) ? id : "Popup" + OpenLayers.Popup.count; + this.lonlat = lonlat; this.size = (size != null) ? size : OpenLayers.Popup.SIZE; if (contentHTML != null) { this.contentHTML = contentHTML;