I have the webmap layers as below
Layers
In the swift, I am able to access the first four layer, but I don't know how to access the Hospitals and School. My code as below
self.featureLayer = map.operationalLayers.firstObject as? AGSFeatureLayer
for layer in map.operationalLayers {
if let fLayer = layer as? AGSFeatureLayer {
print(fLayer.name)
}else{
if let subItems = layer as? AGSArcGISMapImageLayer{
print(subItems.name)
}else{
print(layer)
}
}
}
How to I access those sublayer feature in swift