diff --git a/lib/OpenLayers/Layer.js b/lib/OpenLayers/Layer.js index c94703a46d..9534dee644 100644 --- a/lib/OpenLayers/Layer.js +++ b/lib/OpenLayers/Layer.js @@ -75,8 +75,9 @@ OpenLayers.Layer = OpenLayers.Class({ /** * Property: inRange - * {Boolean} The current map resolution is within the layer's min/max range. - * This is set in whenever the zoom changes. + * {Boolean} The current map resolution is within the layer's min/max + * range. This is set in whenever the zoom + * changes. */ inRange: false, @@ -201,8 +202,8 @@ OpenLayers.Layer = OpenLayers.Class({ /** * 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 @@ OpenLayers.Layer = OpenLayers.Class({ * 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 - {} @@ -459,15 +460,16 @@ OpenLayers.Layer = OpenLayers.Class({ 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 @@ OpenLayers.Layer = OpenLayers.Class({ /** * 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 @@ OpenLayers.Layer = OpenLayers.Class({ 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; },