var map_layer= new ArcGISLocalDynamicMapServiceLayer(map_file_name); map_layer.Initialized += (s, e) => { foreach (LayerInfo sublayer in map_layer) { // figure out if you wan it visible map_layer.SetLayerVisibility(sublayer.ID, visible); } };
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.