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 */
|
/** reference to the parent DIV to which this popup is @type DOMElement */
|
||||||
parent: null,
|
parent: null,
|
||||||
|
|
||||||
|
/** @type OpenLayers.LonLat */
|
||||||
|
lonlat: null,
|
||||||
|
|
||||||
/** @type DOMElement */
|
/** @type DOMElement */
|
||||||
div: null,
|
div: null,
|
||||||
|
|
||||||
@@ -42,13 +45,14 @@ OpenLayers.Popup.prototype = {
|
|||||||
* @constructor
|
* @constructor
|
||||||
*
|
*
|
||||||
* @param {String} id
|
* @param {String} id
|
||||||
|
* @param {OpenLayers.LonLat} lonlat
|
||||||
* @param {OpenLayers.Size} size
|
* @param {OpenLayers.Size} size
|
||||||
* @param {String} contentHTML
|
* @param {String} contentHTML
|
||||||
*/
|
*/
|
||||||
initialize:function(id, size, contentHTML) {
|
initialize:function(id, lonlat, size, contentHTML) {
|
||||||
OpenLayers.Popup.count += 1;
|
OpenLayers.Popup.count += 1;
|
||||||
|
|
||||||
this.id = (id != null) ? id : "Popup" + OpenLayers.Popup.count;
|
this.id = (id != null) ? id : "Popup" + OpenLayers.Popup.count;
|
||||||
|
this.lonlat = lonlat;
|
||||||
this.size = (size != null) ? size : OpenLayers.Popup.SIZE;
|
this.size = (size != null) ? size : OpenLayers.Popup.SIZE;
|
||||||
if (contentHTML != null) {
|
if (contentHTML != null) {
|
||||||
this.contentHTML = contentHTML;
|
this.contentHTML = contentHTML;
|
||||||
|
|||||||
Reference in New Issue
Block a user