Re: [OpenLayers-Users] Changing base layer programatically

2013-02-13 Thread Luís de Sousa
Thank you very much Sergeant_york, I was indeed missing that. Best regards. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Changing-base-layer-programatically-tp5033025p5033991.html Sent from the OpenLayers Users mailing list archive at Nabble.com. ___

Re: [OpenLayers-Users] Changing base layer programatically

2013-02-08 Thread Sergeant_york
You are missing OpenLayers documentation: http://dev.openlayers.org/docs/files/OpenLayers/Map-js.html setBaseLayer : Allows user to specify one of the currently-loaded layers as the Map’s new base layer. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Changing-base-layer-

[OpenLayers-Users] Changing base layer programatically

2013-02-08 Thread Luís de Sousa
Hello everyone, I have a map with two base layers and would like to allow the user to toggle between the two by clicking a button. I have an event handler for this button with code like this: baseLayerA.setVisibility(false); baseLayerB.setVisibility(true); This works to the extent that L