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 Layer A is replaced by Layer B in the map. The
problem is that after this when I zoom no further GetMap requests on the
base layer are issued, the original image lays still.

I understand I am missing something to programatically toggle the base
layer, but what exactly?

Thank you,

Luís



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Changing-base-layer-programatically-tp5033025.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to