OpenLayers OpenLayers

Changeset 496

Show
Ignore:
Timestamp:
06/01/06 08:30:46 (3 years ago)
Author:
euzuro
Message:

remove 'projection' member from Layer. keep single instance in map

Files:

Legend:

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

    r462 r496  
    1212    * @type OpenLayers.Map */ 
    1313    map: null, 
    14  
    15     // str -- projection for use in WFS, WMS, etc. 
    16     projection: null, 
    1714     
    1815    /** 
  • trunk/openlayers/lib/OpenLayers/Layer/Grid.js

    r493 r496  
    221221    getFullRequestString:function(params) { 
    222222        var requestString = "";         
    223         this.params.SRS = this.projection; 
     223        this.params.SRS = this.map.projection; 
    224224        // concat tile params with layer params and convert to string 
    225225        var allParams = Object.extend(params, this.params); 
  • trunk/openlayers/lib/OpenLayers/Map.js

    r473 r496  
    131131    addLayer: function (layer, zIndex) { 
    132132        layer.map = this; 
    133         layer.projection = this.projection; 
    134133        layer.div.style.overflow = ""; 
    135134        if (zIndex) { 
     
    388387    }, 
    389388     
     389    /** 
     390     * ZOOM TO BOUNDS FUNCTION 
     391     */ 
     392 
    390393    moveToNewExtent: function (zoomChanged) { 
    391394        if (zoomChanged != null) { // reset the layerContainerDiv's location