| | 103 | /** |
|---|
| | 104 | * Method: draw |
|---|
| | 105 | * |
|---|
| | 106 | * Parameters: |
|---|
| | 107 | * px - {<OpenLayers.Pixel>} |
|---|
| | 108 | * |
|---|
| | 109 | * Returns: |
|---|
| | 110 | * {DOMElement} Reference to a div that contains the drawn popup. |
|---|
| | 111 | */ |
|---|
| | 112 | draw: function(px) { |
|---|
| | 113 | if (px == null) { |
|---|
| | 114 | if ((this.lonlat != null) && (this.map != null)) { |
|---|
| | 115 | px = this.map.getLayerPxFromLonLat(this.lonlat); |
|---|
| | 116 | } |
|---|
| | 117 | } |
|---|
| | 118 | |
|---|
| | 119 | //calculate relative position |
|---|
| | 120 | this.relativePosition = this.calculateRelativePosition(px); |
|---|
| | 121 | |
|---|
| | 122 | return OpenLayers.Popup.prototype.draw.apply(this, [px]); |
|---|
| | 123 | }, |
|---|
| | 124 | |
|---|
| | 125 | |
|---|