[OpenLayers-Users] Function to get visible layers on a map?
Arnd Wippermann
arnd.wippermann at web.de
Fri Jul 2 17:44:11 EDT 2010
Hi,
Use the property 'visibility' of the layer
var Msg = "";
for(var i=0;i<map.layers.length;i++)
{ Msg += map.layers[i].name + " :: " + map.layers[i].visibility + "\r\n";
}
alert(Msg);
Arnd
-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Robert Hicks
Gesendet: Freitag, 2. Juli 2010 21:40
An: users at openlayers.org
Betreff: [OpenLayers-Users] Function to get visible layers on a map?
Hey all, is there a function or some easy way to find which layers are set
to visible on a map?
--
web http://www.hyxspace.com
aim hyx1138
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users
More information about the Users
mailing list