[OpenLayers-Commits] r4184 - trunk/openlayers/lib/OpenLayers

commits at openlayers.org commits at openlayers.org
Tue Sep 4 06:28:20 EDT 2007


Author: euzuro
Date: 2007-09-04 06:28:16 -0400 (Tue, 04 Sep 2007)
New Revision: 4184

Modified:
   trunk/openlayers/lib/OpenLayers/Layer.js
Log:
coding standards. 79 char limit on lines. no 4unctional di44erences here.

Modified: trunk/openlayers/lib/OpenLayers/Layer.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer.js	2007-09-04 03:32:02 UTC (rev 4183)
+++ trunk/openlayers/lib/OpenLayers/Layer.js	2007-09-04 10:28:16 UTC (rev 4184)
@@ -75,8 +75,9 @@
 
     /** 
      * Property: inRange
-     * {Boolean} The current map resolution is within the layer's min/max range.
-     *     This is set in <OpenLayers.Map.setCenter> whenever the zoom changes.
+     * {Boolean} The current map resolution is within the layer's min/max 
+     *     range. This is set in <OpenLayers.Map.setCenter> whenever the zoom 
+     *     changes.
      */
     inRange: false,
     
@@ -201,8 +202,8 @@
 
     /**
      * APIProperty: displayOutsideMaxExtent
-     * {Boolean} Request map tiles that are completely outside of the max extent
-     *     for this layer.  Defaults to false.
+     * {Boolean} Request map tiles that are completely outside of the max 
+     *     extent for this layer. Defaults to false.
      */
     displayOutsideMaxExtent: false,
 
@@ -388,8 +389,8 @@
      *     so that subclasses can override this and take special action once 
      *     they have their map variable set. 
      * 
-     *     Here we take care to bring over any of the necessary default properties
-     *     from the map. 
+     *     Here we take care to bring over any of the necessary default 
+     *     properties from the map. 
      * 
      * Parameters:
      * map - {<OpenLayers.Map>}
@@ -459,15 +460,16 @@
                                                    this.map.getTileSize());
         this.tileSize = tileSize;
         if(this.gutter) {
-            // layers with gutters need non-null tile sizes
-            //if(tileSize == null) {
-            //    OpenLayers.console.error("Error in layer.setMap() for " +
-            //                              this.name + ": layers with gutters " +
-            //                              "need non-null tile sizes");
-            //}
-            this.imageOffset = new OpenLayers.Pixel(-this.gutter, -this.gutter); 
-            this.imageSize = new OpenLayers.Size(tileSize.w + (2 * this.gutter), 
-                                                 tileSize.h + (2 * this.gutter)); 
+          // layers with gutters need non-null tile sizes
+          //if(tileSize == null) {
+          //    OpenLayers.console.error("Error in layer.setMap() for " +
+          //                              this.name + ": layers with " +
+          //                              "gutters need non-null tile sizes");
+          //}
+            this.imageOffset = new OpenLayers.Pixel(-this.gutter, 
+                                                    -this.gutter); 
+            this.imageSize = new OpenLayers.Size(tileSize.w + (2*this.gutter), 
+                                                 tileSize.h + (2*this.gutter)); 
         }
     },
 
@@ -483,8 +485,8 @@
 
     /** 
      * APIMethod: setVisibility
-     * Set the visibility flag for the layer and hide/show & redraw accordingly. 
-     *     Fire event unless otherwise specified
+     * Set the visibility flag for the layer and hide/show & redraw 
+     *     accordingly. Fire event unless otherwise specified
      * 
      * Note that visibility is no longer simply whether or not the layer's
      *     style.display is set to "block". Now we store a 'visibility' state 
@@ -820,9 +822,9 @@
             var resolution = this.map.getResolution();
             var extent = this.map.getExtent();
             px = new OpenLayers.Pixel(
-                           Math.round(1/resolution * (lonlat.lon - extent.left)),
-                           Math.round(1/resolution * (extent.top - lonlat.lat))
-                           );    
+                Math.round(1/resolution * (lonlat.lon - extent.left)),
+                Math.round(1/resolution * (extent.top - lonlat.lat))
+            );    
         }
         return px;
     },



More information about the Commits mailing list