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
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.