OpenLayers OpenLayers

Changeset 4181

Show
Ignore:
Timestamp:
09/03/07 11:49:39 (1 year ago)
Author:
crschmidt
Message:

the Reproject option on tiles has never worked quite perfectly (because of
#429). With the new GoogleMercator? layer going into 2.5, we shouldn't be
needing this anyway, so turn it *off* by default, so that we don't have to
deal with the pain anymore. (Closes #881) Thx to euz for review.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Layer/HTTPRequest.js

    r4110 r4181  
    3636    /**  
    3737     * APIProperty: reproject 
     38     * *Deprecated*. See http://trac.openlayers.org/wiki/SpatialMercator 
     39     * for information on the replacement for this functionality.  
    3840     * {Boolean} Whether layer should reproject itself based on base layer  
    3941     *           locations. This allows reprojection onto commercial layers.  
    4042     *           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     *            
    4245     */ 
    4346    reproject: false, 
  • trunk/openlayers/lib/OpenLayers/Layer/TMS.js

    r4110 r4181  
    1313 */ 
    1414OpenLayers.Layer.TMS = OpenLayers.Class(OpenLayers.Layer.Grid, { 
    15  
    16     /** 
    17      * APIProperty: reproject 
    18      * {Boolean} 
    19      */ 
    20     reproject: false, 
    2115 
    2216    /** 
  • trunk/openlayers/lib/OpenLayers/Layer/TileCache.js

    r4110 r4181  
    1717OpenLayers.Layer.TileCache = OpenLayers.Class(OpenLayers.Layer.Grid, { 
    1818 
    19     /**  
    20      * APIProperty: reproject 
    21      * {Boolean} Try to reproject this layer if it is used as an overlay. 
    22      *     Default is false. 
    23      */ 
    24     reproject: false, 
    25      
    2619    /**  
    2720     * APIProperty: isBaseLayer 
  • trunk/openlayers/lib/OpenLayers/Layer/WMS.js

    r4110 r4181  
    3232    /** 
    3333     * Property: reproject 
     34     * *Deprecated*. See http://trac.openlayers.org/wiki/SpatialMercator 
     35     * for information on the replacement for this functionality.  
    3436     * {Boolean} Try to reproject this layer if its coordinate reference system 
    3537     *           is different than that of the base layer.  Default is true.   
     
    3739     *           most cases. 
    3840     */ 
    39     reproject: true, 
     41    reproject: false, 
    4042  
    4143    /** 
  • trunk/openlayers/lib/OpenLayers/Tile.js

    r4110 r4181  
    206206     */ 
    207207    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.");  
    208214        var topLeft = this.layer.map.getLonLatFromLayerPx(position);  
    209215        var bottomRightPx = position.clone(); 
  • trunk/openlayers/tests/Layer/test_WMS.html

    r4080 r4181  
    283283            map.addLayer(layer); 
    284284            var wmslayer = new OpenLayers.Layer.WMS(name, url, params, 
    285                                                     {isBaseLayer: false}); 
     285                                                    {isBaseLayer: false, reproject:true}); 
    286286            wmslayer.isBaseLayer=false; 
    287287            map.addLayer(wmslayer); 
  • trunk/openlayers/tests/Tile/test_Image.html

    r4059 r4181  
    169169        var map = new OpenLayers.Map('map'); 
    170170        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});  
    172172        map.addLayer(layer); 
    173173        map.zoomToMaxExtent(); 
     
    177177        t.delay_call( 1, function() { t.eq(tile.imgDiv, null, "Tile imgDiv is null.") } ); 
    178178        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}); 
    180180        map.addLayer(layer); 
    181181        tile = new OpenLayers.Tile.Image(layer, position, new OpenLayers.Bounds(-90,-85,-90,85), url, size);