Changeset 4184
- Timestamp:
- 09/04/07 06:28:16 (1 year ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Layer.js (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Layer.js
r4110 r4184 76 76 /** 77 77 * 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. 80 81 */ 81 82 inRange: false, … … 202 203 /** 203 204 * APIProperty: displayOutsideMaxExtent 204 * {Boolean} Request map tiles that are completely outside of the max extent205 * 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. 206 207 */ 207 208 displayOutsideMaxExtent: false, … … 389 390 * they have their map variable set. 390 391 * 391 * Here we take care to bring over any of the necessary default properties392 * from the map.392 * Here we take care to bring over any of the necessary default 393 * properties from the map. 393 394 * 394 395 * Parameters: … … 460 461 this.tileSize = tileSize; 461 462 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)); 471 473 } 472 474 }, … … 484 486 /** 485 487 * APIMethod: setVisibility 486 * Set the visibility flag for the layer and hide/show & redraw accordingly.487 * Fire event unless otherwise specified488 * Set the visibility flag for the layer and hide/show & redraw 489 * accordingly. Fire event unless otherwise specified 488 490 * 489 491 * Note that visibility is no longer simply whether or not the layer's … … 821 823 var extent = this.map.getExtent(); 822 824 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 ); 826 828 } 827 829 return px;
