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.
Solved! Go to 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]
}
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]
}
Hi Shubham
This is really helpful for me.
Thank You