[Users] getVisibility()

Juan Martin cowaboonger at gmail.com
Mon Jan 16 17:50:41 CET 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20120116/c0e5ccb7/attachment.htm 


More information about the Users mailing list