OpenLayers OpenLayers

Changeset 1066

Show
Ignore:
Timestamp:
08/02/06 19:53:55 (2 years ago)
Author:
euzuro
Message:

set the visibility of the new base layer before calling reprojection. for the google layer, specifically, this is necessary because it resets its center

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/euzuro/layerswitcher/lib/OpenLayers/Map.js

    r1061 r1066  
    369369                this.baseLayer = newBaseLayer; 
    370370     
     371                // make the new one visible 
     372                this.baseLayer.setVisibility(true, noEvent); 
     373                 
    371374                // now go back and reproject 
    372375                for(var i=0; i < this.layers.length; i++) { 
     
    374377                } 
    375378 
    376                 // make the new one visible 
    377                 this.baseLayer.setVisibility(true, noEvent); 
    378                  
    379379                if ((noEvent == null) || (noEvent == false)) { 
    380380                    this.events.triggerEvent("changebaselayer");