<operationallayers> <layer label="stuff" type="dynamic" visible="true" alpha=".5" url="http://severname/arcgis/services/test_maps/stuff/MapServer"/> </operationallayers> Thanks!
//Add this import import com.esri.viewer.components.toc.tocClasses.TocMapLayerItem; //Add this to the very end of the init function callLater(expandTOC); //Add this new function private function expandTOC():void { toc.openItems = toc.dataProvider.source; for each(var item:TocMapLayerItem in toc.openItems) { if (item.isTopLevel()){ toc.expandItem(item, true); } } }
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.