Hi all,
I need to extract/get layers, form templates from the web map(portal/portal item), have to show point layers, form templates , identify attributes, sync attributes. Please suggest the solution.
To get layers of a web-map portal item, load the portal item to the map, and get the list of operational layers using:
map.operationalLayers
val portal = Portal("Your-Portal-URL") val portalItem = PortalItem(portal, "Portal-Item-ID") map = ArcGISMap(portalItem) map.addDoneLoadingListener { Log.i("TAG","Number of layers: ${map.operationalLayers.size} ") val firstLayer = map.operationalLayers[0] }
https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/mapping/GeoModel.html#getOperationalLayers()
Hi Shubham
This is really helpful for me.
Thank You
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.