Changeset 4181
- Timestamp:
- 09/03/07 11:49:39 (1 year ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Layer/HTTPRequest.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Layer/TMS.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Layer/TileCache.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Layer/WMS.js (modified) (2 diffs)
- trunk/openlayers/lib/OpenLayers/Tile.js (modified) (1 diff)
- trunk/openlayers/tests/Layer/test_WMS.html (modified) (1 diff)
- trunk/openlayers/tests/Tile/test_Image.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Layer/HTTPRequest.js
r4110 r4181 36 36 /** 37 37 * APIProperty: reproject 38 * *Deprecated*. See http://trac.openlayers.org/wiki/SpatialMercator 39 * for information on the replacement for this functionality. 38 40 * {Boolean} Whether layer should reproject itself based on base layer 39 41 * locations. This allows reprojection onto commercial layers. 40 42 * Default is false: Most layers can't reproject, but layers 41 * which can create non-square geographic pixels can, like WMS. 43 * which can create non-square geographic pixels can, like WMS. 44 * 42 45 */ 43 46 reproject: false, trunk/openlayers/lib/OpenLayers/Layer/TMS.js
r4110 r4181 13 13 */ 14 14 OpenLayers.Layer.TMS = OpenLayers.Class(OpenLayers.Layer.Grid, { 15 16 /**17 * APIProperty: reproject18 * {Boolean}19 */20 reproject: false,21 15 22 16 /** trunk/openlayers/lib/OpenLayers/Layer/TileCache.js
r4110 r4181 17 17 OpenLayers.Layer.TileCache = OpenLayers.Class(OpenLayers.Layer.Grid, { 18 18 19 /**20 * APIProperty: reproject21 * {Boolean} Try to reproject this layer if it is used as an overlay.22 * Default is false.23 */24 reproject: false,25 26 19 /** 27 20 * APIProperty: isBaseLayer trunk/openlayers/lib/OpenLayers/Layer/WMS.js
r4110 r4181 32 32 /** 33 33 * Property: reproject 34 * *Deprecated*. See http://trac.openlayers.org/wiki/SpatialMercator 35 * for information on the replacement for this functionality. 34 36 * {Boolean} Try to reproject this layer if its coordinate reference system 35 37 * is different than that of the base layer. Default is true. … … 37 39 * most cases. 38 40 */ 39 reproject: true,41 reproject: false, 40 42 41 43 /** trunk/openlayers/lib/OpenLayers/Tile.js
r4110 r4181 206 206 */ 207 207 getBoundsFromBaseLayer: function(position) { 208 OpenLayers.Console.warn("You are using the 'reproject' option " + 209 "on the " + this.layer.name + " layer. This option is deprecated: " + 210 "its use was designed to support displaying data over commercial " + 211 "basemaps, but that functionality should now be achieved by using " + 212 "Spherical Mercator support. More information is available from " + 213 "http://trac.openlayers.org/wiki/SphericalMercator."); 208 214 var topLeft = this.layer.map.getLonLatFromLayerPx(position); 209 215 var bottomRightPx = position.clone(); trunk/openlayers/tests/Layer/test_WMS.html
r4080 r4181 283 283 map.addLayer(layer); 284 284 var wmslayer = new OpenLayers.Layer.WMS(name, url, params, 285 {isBaseLayer: false });285 {isBaseLayer: false, reproject:true}); 286 286 wmslayer.isBaseLayer=false; 287 287 map.addLayer(wmslayer); trunk/openlayers/tests/Tile/test_Image.html
r4059 r4181 169 169 var map = new OpenLayers.Map('map'); 170 170 var layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", 171 "http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'} );171 "http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'}, {'reproject': true}); 172 172 map.addLayer(layer); 173 173 map.zoomToMaxExtent(); … … 177 177 t.delay_call( 1, function() { t.eq(tile.imgDiv, null, "Tile imgDiv is null.") } ); 178 178 var layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", 179 "http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'}, {' alpha':true});179 "http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'}, {'reproject': true, 'alpha':true}); 180 180 map.addLayer(layer); 181 181 tile = new OpenLayers.Tile.Image(layer, position, new OpenLayers.Bounds(-90,-85,-90,85), url, size);
