AW: [OpenLayers-Users] Base layer dependent Overlay
Arnd Wippermann
arnd.wippermann at web.de
Fri Sep 23 16:37:54 EDT 2011
Hi,
register "changebaselayer":
map.events.register("changebaselayer", map, function (soso)
{updateLayerVisibility(soso)});
function updateLayerVisibility(soso)
{
if(soso.layer.name=="OSM"){
map.layers[2].setVisibility(false);
map.layers[3].setVisibility(true);
}
else{
map.layers[3].setVisibility(false);
map.layers[2].setVisibility(true);
}
}
http://gis.ibbeck.de/OLClient/examples/changebaselayer.asp
Arnd
-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Aditya
Kumar
Gesendet: Freitag, 23. September 2011 13:23
An: users at openlayers.org
Betreff: [OpenLayers-Users] Base layer dependent Overlay
Dear Users,
I have a set of base layers and Overlay layers.But I need that when I
click on one base layer just a few numbers of layers should only be there in
layers switchers(Only Overly Layers).And if I change the base layer, the
layers in Overlay should also change to different.
Waiting for your help.
Thanks in advnce.
Aditya Kumar
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Base-layer-dependent-Overlay-tp682385
8p6823858.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
More information about the Users
mailing list