(ArcGIS iOS swift SDK 100) Cannot access AGSArcGISMapImageSubLayer.sublayers if layer is a group layer in map service (mxd). The app is hang on?
Having the same issue, any luck on work around yet?
This is still a bug. Android SDK 100.0 do not have this bug.
The solution is reflection please see the code:
(lyr is an AGSArcGISMapImageSubLayer object)
let sublayers=lyr.value(forKey:"_subLayers") as! NSMutableArray
for sublyr in sublayers{
let slyr=(sublyr as! AGSArcGISMapImageSubLayer)
…...
}
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.