OpenLayers OpenLayers

Changeset 1305

Show
Ignore:
Timestamp:
08/19/06 00:47:12 (2 years ago)
Author:
euzuro
Message:

real fix for #189 -- event wasnt being triggered, and wihtout the clone(), control was floating down the div

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/openlayers/2.0/lib/OpenLayers/Control/LayerSwitcher.js

    r1206 r1305  
    190190            var input = this.baseLayerInputs[i];    
    191191            if (input.checked) { 
    192                 this.map.setBaseLayer(input.layer, true); 
     192                this.map.setBaseLayer(input.layer, false); 
    193193            } 
    194194        } 
  • branches/openlayers/2.0/lib/OpenLayers/Control/PanZoomBar.js

    r1303 r1305  
    3333    setMap: function(map) { 
    3434        OpenLayers.Control.PanZoom.prototype.setMap.apply(this, arguments); 
    35          
    3635        this.map.events.register("changebaselayer", this, this.redraw); 
    3736    }, 
     
    5352        // initialize our internal div 
    5453        OpenLayers.Control.prototype.draw.apply(this, arguments); 
    55         px = this.position
     54        px = this.position.clone()
    5655 
    5756        // place the controls