Hello back again,
This is the code that doesn't work properly now...
for (layername in map.layers) {
// if the layer is turned off, skip it
var layer = map.layers[layername];
if (!layer.getVisibility()) continue;
CapasActivas.push(layer.name.toString());
CapasActivas_json = JSON.stringify(CapasActivas.toString());
}
That give me a list of active layers for playing around with them but
problem now is with getVisibility that looks to be not a valid method...
anyone can help?
Regards,
Juan
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users