I've got a javascript application that changes the base layer of a map 
as one of its operations and I was wondering what the most correct way 
to update the LayerSwitcher control to reflect the changed base layer 
would be. In LayerSwitcher.js I didn't see an obvious function like 
setBaseLayer() or similar, and redraw() alone doesn't react to a changed 
base layer. So what I did was set layerStates.length = 0 and called 
redraw(). This works, but I was wondering if this is the best way to 
handle it?

- Bill Thoen
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to