| 56 | | /** |
|---|
| 57 | | * Method: draw |
|---|
| 58 | | * |
|---|
| 59 | | * Parameters: |
|---|
| 60 | | * px - {<OpenLayers.Pixel>} |
|---|
| 61 | | * |
|---|
| 62 | | * Returns: |
|---|
| 63 | | * {DOMElement} Reference to a div that contains the drawn popup. |
|---|
| 64 | | */ |
|---|
| 65 | | draw: function(px) { |
|---|
| 66 | | if (px == null) { |
|---|
| 67 | | if ((this.lonlat != null) && (this.map != null)) { |
|---|
| 68 | | px = this.map.getLayerPxFromLonLat(this.lonlat); |
|---|
| 69 | | } |
|---|
| 70 | | } |
|---|
| 71 | | |
|---|
| 72 | | //calculate relative position |
|---|
| 73 | | this.relativePosition = this.calculateRelativePosition(px); |
|---|
| 74 | | |
|---|
| 75 | | return OpenLayers.Popup.prototype.draw.apply(this, [px]); |
|---|
| 76 | | }, |
|---|
| 77 | | |
|---|