| 163 | | }, |
|---|
| 164 | | |
|---|
| 165 | | /** |
|---|
| 166 | | * Method: calculateRelativePosition |
|---|
| 167 | | * Because we want to give the Framed the ability to *not* be |
|---|
| 168 | | * positioned relative to its anchor (ie always "tr"), we overrride |
|---|
| 169 | | * this function from the Anchored popup and only actually make the |
|---|
| 170 | | * call to the superclass if the 'fixedRelativePosition' property is |
|---|
| 171 | | * false. |
|---|
| 172 | | * |
|---|
| 173 | | * Parameters: |
|---|
| 174 | | * px - {<OpenLayers.Pixel>} |
|---|
| 175 | | * |
|---|
| 176 | | * Returns: |
|---|
| 177 | | * {String} The relative position ("br" "tr" "tl "bl") at which the popup |
|---|
| 178 | | * should be placed. |
|---|
| 179 | | */ |
|---|
| 180 | | calculateRelativePosition: function(px) { |
|---|
| 181 | | var relativePosition = this.relativePosition; |
|---|
| 182 | | if (!this.fixedRelativePosition) { |
|---|
| 183 | | relativePosition = |
|---|
| 184 | | OpenLayers.Popup.Anchored.prototype.calculateRelativePosition.apply(this, arguments); |
|---|
| 185 | | } |
|---|
| 186 | | |
|---|
| 187 | | return relativePosition; |
|---|