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.
http://MyServer/ArcGIS/rest/services/ParcelViewer/MapServer/legend
Coneje, When you go to the REST Service Directory for this MapService and click legend does it appear in the results correctly?For example if you enter a url like this in your browser:http://MyServer/ArcGIS/rest/services/ParcelViewer/MapServer/legend
Coneje, What version of ArcGIS Server are you using and what service pack number if any?
Coneje, Go to your http://YourServer/ArcGIS/rest/services and it should look something like this:[ATTACH=CONFIG]10649[/ATTACH]
Coneje, You might not see all the symbology properly in the TOC Widget until you apply at least service pack 1 to ArcGIS Server. There are 3 service packs out for ArcGIS Server 10. I would recommend that you apply SP3 now.
}else if (m_layer is WMSLayer){
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.