Ticket #881: remove_reproject.patch
| File remove_reproject.patch, 5.5 kB (added by crschmidt, 1 year ago) |
|---|
-
tests/Tile/test_Image.html
old new 168 168 var size = new OpenLayers.Size(5,6); 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(); 174 174 tile = new OpenLayers.Tile.Image(layer, position, new OpenLayers.Bounds(-90,-85,-90,85), url, size); … … 176 176 tile.moveTo(new OpenLayers.Bounds(-185,-90,-180,-80), new OpenLayers.Pixel(-180,-85), true); 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); 182 182 tile.draw(); -
tests/Layer/test_WMS.html
old new 282 282 var layer = new OpenLayers.Layer.Google("Google"); 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); 288 288 map.setCenter(new OpenLayers.LonLat(0,0), 5); -
lib/OpenLayers/Tile.js
old new 205 205 * bounds - {<OpenLayers.Bounds>} 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(); 210 216 bottomRightPx.x += this.size.w; -
lib/OpenLayers/Layer/WMS.js
old new 31 31 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. 36 38 * Set this in the layer options. Should be set to false in 37 39 * most cases. 38 40 */ 39 reproject: true,41 reproject: false, 40 42 41 43 /** 42 44 * APIProperty: isBaseLayer -
lib/OpenLayers/Layer/TileCache.js
old new 17 17 OpenLayers.Layer.TileCache = OpenLayers.Class(OpenLayers.Layer.Grid, { 18 18 19 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 /**27 20 * APIProperty: isBaseLayer 28 21 * {Boolean} Treat this layer as a base layer. Default is true. 29 22 **/ -
lib/OpenLayers/Layer/HTTPRequest.js
old new 35 35 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, 44 47 -
lib/OpenLayers/Layer/TMS.js
old new 14 14 OpenLayers.Layer.TMS = OpenLayers.Class(OpenLayers.Layer.Grid, { 15 15 16 16 /** 17 * APIProperty: reproject18 * {Boolean}19 */20 reproject: false,21 22 /**23 17 * APIProperty: isBaseLayer 24 18 * {Boolean} 25 19 */
