I am struggling with this most basic operation ... please help!
Here is code snippet I am working with :
$("#grayPic").click(function() {
var allGuys = map.allLayers;
var i, currentLayer;
for (i = 0, l = allGuys.length; i < l; i++) {
currentLayer = allGuys[i];
currentLayer.visible = false;
};
});