| 656 | | * Adjusts the extent of a bounds in map units by the layer's gutter |
|---|
| 657 | | * in pixels. |
|---|
| 658 | | * |
|---|
| 659 | | * @param {OpenLayers.Bounds} bounds |
|---|
| 660 | | * @type OpenLayers.Bounds |
|---|
| 661 | | * @return A bounds adjusted in height and width by the gutter |
|---|
| 662 | | */ |
|---|
| 663 | | adjustBoundsByGutter: function(bounds) { |
|---|
| 664 | | var mapGutter = this.gutter * this.map.getResolution(); |
|---|
| 665 | | bounds = new OpenLayers.Bounds(bounds.left - mapGutter, |
|---|
| 666 | | bounds.bottom - mapGutter, |
|---|
| 667 | | bounds.right + mapGutter, |
|---|
| 668 | | bounds.top + mapGutter); |
|---|
| 669 | | return bounds; |
|---|
| 670 | | }, |
|---|
| 671 | | |
|---|
| 672 | | /** |
|---|
| | 703 | /** |
|---|
| | 704 | * Adjusts the extent of a bounds in map units by the layer's gutter |
|---|
| | 705 | * in pixels. |
|---|
| | 706 | * |
|---|
| | 707 | * @param {OpenLayers.Bounds} bounds |
|---|
| | 708 | * @type OpenLayers.Bounds |
|---|
| | 709 | * @return A bounds adjusted in height and width by the gutter |
|---|
| | 710 | */ |
|---|
| | 711 | adjustBoundsByGutter: function(bounds) { |
|---|
| | 712 | var mapGutter = this.gutter * this.map.getResolution(); |
|---|
| | 713 | bounds = new OpenLayers.Bounds(bounds.left - mapGutter, |
|---|
| | 714 | bounds.bottom - mapGutter, |
|---|
| | 715 | bounds.right + mapGutter, |
|---|
| | 716 | bounds.top + mapGutter); |
|---|
| | 717 | return bounds; |
|---|
| | 718 | }, |
|---|
| | 719 | |
|---|