I am trying to change the visibility of few sub layers within my AGSDynamicMapServiceLayer.But didn't found any solution for same.
Please help.
You can specify which layers in the service should be visible by modifying the visibleLayers property. For more information, please refer to this guide page: Dynamic map service layer—ArcGIS Runtime SDK for iOS | ArcGIS for Developers. Here's a code snippet from the documentation.
<SPAN class="" style="color: #006a00;">//only display ‘ushigh’ (id=0) and ‘states’ (id=1) layer </SPAN>layer.visibleLayers = [<SPAN class="" style="color: #1c00cf;">0</SPAN>, <SPAN class="" style="color: #1c00cf;">1</SPAN>]
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.