| 287 | | * APIMethod: transform |
|---|
| 288 | | * Reproject a bounds from a projection to another. |
|---|
| 289 | | * |
|---|
| 290 | | * Parameters: |
|---|
| 291 | | * from - {<OpenLayers.Projection>} |
|---|
| 292 | | * to - {<OpenLayers.Projection>} |
|---|
| 293 | | */ |
|---|
| 294 | | transform: function(from, to) { |
|---|
| 295 | | var bl = OpenLayers.Projection.transform({'x':this.left, 'y': this.bottom}, from, to); |
|---|
| 296 | | var tr = OpenLayers.Projection.transform({'x':this.right, 'y': this.top}, from, to); |
|---|
| 297 | | this.left = bl.x; |
|---|
| 298 | | this.bottom = bl.y; |
|---|
| 299 | | this.right = tr.x; |
|---|
| 300 | | this.top = tr.y; |
|---|
| 301 | | }, |
|---|
| 302 | | |
|---|
| 303 | | /** |
|---|