1046: Type was not found or it is not compile-time constant: Tocitem
if (Arr=="1") { itm1.children.visible=true; k=k+1; //For Group Layers } and if (Arr =="1") { itm1.children.children .visible= true; k=k+1; //For SubLayers in group }
Scott,
That is actually the desired behavior of many users. If you want to eliminate those layers from the map than you have to use a layer definition.