OpenLayers OpenLayers

Changeset 4184

Show
Ignore:
Timestamp:
09/04/07 06:28:16 (1 year ago)
Author:
euzuro
Message:

coding standards. 79 char limit on lines. no 4unctional di44erences here.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Layer.js

    r4110 r4184  
    7676    /**  
    7777     * Property: inRange 
    78      * {Boolean} The current map resolution is within the layer's min/max range. 
    79      *     This is set in <OpenLayers.Map.setCenter> whenever the zoom changes. 
     78     * {Boolean} The current map resolution is within the layer's min/max  
     79     *     range. This is set in <OpenLayers.Map.setCenter> whenever the zoom  
     80     *     changes. 
    8081     */ 
    8182    inRange: false, 
     
    202203    /** 
    203204     * APIProperty: displayOutsideMaxExtent 
    204      * {Boolean} Request map tiles that are completely outside of the max extent 
    205      *     for this layer. Defaults to false. 
     205     * {Boolean} Request map tiles that are completely outside of the max  
     206     *     extent for this layer. Defaults to false. 
    206207     */ 
    207208    displayOutsideMaxExtent: false, 
     
    389390     *     they have their map variable set.  
    390391     *  
    391      *     Here we take care to bring over any of the necessary default properties 
    392      *     from the map.  
     392     *     Here we take care to bring over any of the necessary default  
     393     *     properties from the map.  
    393394     *  
    394395     * Parameters: 
     
    460461        this.tileSize = tileSize; 
    461462        if(this.gutter) { 
    462             // layers with gutters need non-null tile sizes 
    463             //if(tileSize == null) { 
    464             //    OpenLayers.console.error("Error in layer.setMap() for " + 
    465             //                              this.name + ": layers with gutters " + 
    466             //                              "need non-null tile sizes"); 
    467             //} 
    468             this.imageOffset = new OpenLayers.Pixel(-this.gutter, -this.gutter);  
    469             this.imageSize = new OpenLayers.Size(tileSize.w + (2 * this.gutter),  
    470                                                  tileSize.h + (2 * this.gutter));  
     463          // layers with gutters need non-null tile sizes 
     464          //if(tileSize == null) { 
     465          //    OpenLayers.console.error("Error in layer.setMap() for " + 
     466          //                              this.name + ": layers with " + 
     467          //                              "gutters need non-null tile sizes"); 
     468          //} 
     469            this.imageOffset = new OpenLayers.Pixel(-this.gutter,  
     470                                                    -this.gutter);  
     471            this.imageSize = new OpenLayers.Size(tileSize.w + (2*this.gutter),  
     472                                                 tileSize.h + (2*this.gutter));  
    471473        } 
    472474    }, 
     
    484486    /**  
    485487     * APIMethod: setVisibility 
    486      * Set the visibility flag for the layer and hide/show & redraw accordingly.  
    487      *     Fire event unless otherwise specified 
     488     * Set the visibility flag for the layer and hide/show & redraw  
     489     *     accordingly. Fire event unless otherwise specified 
    488490     *  
    489491     * Note that visibility is no longer simply whether or not the layer's 
     
    821823            var extent = this.map.getExtent(); 
    822824            px = new OpenLayers.Pixel( 
    823                            Math.round(1/resolution * (lonlat.lon - extent.left)), 
    824                            Math.round(1/resolution * (extent.top - lonlat.lat)) 
    825                            );     
     825                Math.round(1/resolution * (lonlat.lon - extent.left)), 
     826                Math.round(1/resolution * (extent.top - lonlat.lat)) 
     827            );     
    826828        } 
    827829        return px;