I am new to JavaScript coding and just found this thread. How do I download the toc code?Thanks,
mine obey visibility. Make sure you arent grouping layers in your mapservice, TOC can't handle groups
//Use the ImageParameters to set the invisible layers in the map service during ArcGISDynamicMapServiceLayer construction. var imageParameters = new ImageParameters(); imageParameters.layerIds = [0,1]; imageParameters.layerOption = ImageParameters.LAYER_OPTION_INCLUDE; //can also be: LAYER_OPTION_EXCLUDE, LAYER_OPTION_HIDE, LAYER_OPTION_INCLUDE //Takes a URL to a non cached map service. var dynamicMapServiceLayer0 = new ArcGISDynamicMapServiceLayer("http://atlas.resources.ca.gov/ArcGIS/rest/services/Atmosphere_Climate/RIDGE_Precip_Radar/MapServer/", { "opacity" : 0.5,"imageParameters":imageParameters}); //Takes a URL to a non cached map service. var dynamicMapServiceLayer1 = new ArcGISDynamicMapServiceLayer("http://gisdev.srh.noaa.gov/arcgis/rest/services/GSP/gffg/MapServer", { "opacity" : 0.5,"imageParameters":imageParameters}); map.addLayer(dynamicMapServiceLayer0); map.addLayer(dynamicMapServiceLayer1);
http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/latest/docs/toc/reference.html
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.