I have a feature service hosted on ArcGIS Online that has a dynamic number of point and polyline layers under it. To retrieve a single feature layer in this feature service, you simply specify the index ...FeatureServer/0
as the url and wrap in the below objects. These provide all the geographical data and metadata about the layer.
const val toursUrl = "https://services1.arcgis.com/1234/ArcGIS/rest/services/XXX/FeatureServer/0"
val townTourFeatureTable = ServiceFeatureTable(toursUrl)
val featureLayer = FeatureLayer.createWithFeatureTable(hvTourFeatureTable)
But I am trying to access the feature server and get a list of all of the layers like the one above.
The above objects do not work with a link without the index at the end, and neither does ArcGISMapImageLayer
, which gave an error that "map" is not a supported service. I can't seem to find a page in the documentation that discusses feature servers, not a specific layer in the feature server.
These have properties called sublayerContents
or something similar, but all give null values or empty arrays.
Is this something supported by ArcGIS Maps SDK for Kotlin? The JavaScript SDK has what I'm looking for but I can't use it because I am developing this for Android and iOS.