| 261 | | |
|---|
| 262 | | var resolution = this.getResolution(); |
|---|
| | 261 | if(bbox) { |
|---|
| | 262 | var resolution = this.getResolution(); |
|---|
| | 263 | |
|---|
| | 264 | var scaledBox = |
|---|
| | 265 | new OpenLayers.Bounds((bbox.left/resolution).toFixed(), |
|---|
| | 266 | (bbox.bottom/resolution).toFixed(), |
|---|
| | 267 | (bbox.right/resolution).toFixed(), |
|---|
| | 268 | (bbox.top/resolution).toFixed()); |
|---|
| | 269 | |
|---|
| | 270 | // Set the internal coordinate system to draw the path |
|---|
| | 271 | node.style.left = scaledBox.left; |
|---|
| | 272 | node.style.top = scaledBox.top; |
|---|
| | 273 | node.style.width = scaledBox.getWidth(); |
|---|
| | 274 | node.style.height = scaledBox.getHeight(); |
|---|
| 264 | | var scaledBox = |
|---|
| 265 | | new OpenLayers.Bounds((bbox.left/resolution).toFixed(), |
|---|
| 266 | | (bbox.bottom/resolution).toFixed(), |
|---|
| 267 | | (bbox.right/resolution).toFixed(), |
|---|
| 268 | | (bbox.top/resolution).toFixed()); |
|---|
| 269 | | |
|---|
| 270 | | // Set the internal coordinate system to draw the path |
|---|
| 271 | | node.style.left = scaledBox.left; |
|---|
| 272 | | node.style.top = scaledBox.top; |
|---|
| 273 | | node.style.width = scaledBox.getWidth(); |
|---|
| 274 | | node.style.height = scaledBox.getHeight(); |
|---|
| 275 | | |
|---|
| 276 | | node.coordorigin = scaledBox.left + " " + scaledBox.top; |
|---|
| 277 | | node.coordsize = scaledBox.getWidth()+ " " + scaledBox.getHeight(); |
|---|
| | 276 | node.coordorigin = scaledBox.left + " " + scaledBox.top; |
|---|
| | 277 | node.coordsize = scaledBox.getWidth()+ " " + scaledBox.getHeight(); |
|---|
| | 278 | } |
|---|