OpenLayers OpenLayers

Changeset 3304

Show
Ignore:
Timestamp:
06/08/07 16:51:27 (2 years ago)
Author:
euzuro
Message:

move adjustBoundsByGutter() down so that it's near where it's being called.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/crschmidt/wraptheworld/lib/OpenLayers/Layer.js

    r3303 r3304  
    654654     
    655655    /** 
    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     /** 
    673656     * Sets the opacity for the entire layer (all images) 
    674657     * @param {Float} opacity 
     
    718701    }, 
    719702 
     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     
    720720    /** @final @type String */ 
    721721    CLASS_NAME: "OpenLayers.Layer"