give the popup a lonlat
git-svn-id: http://svn.openlayers.org/trunk/openlayers@298 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user