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>]
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.