Hello back again,<br><br>This is the code that doesn't work properly now...<br><br>for (layername in map.layers) {<br> // if the layer is turned off, skip it<br> var layer = map.layers[layername];<br> if (!layer.getVisibility()) continue;<br>
CapasActivas.push(layer.name.toString());<br> CapasActivas_json = JSON.stringify(CapasActivas.toString());<br>}<br><br>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...<br>
<br>anyone can help?<br><br>Regards,<br><br>Juan<br>