Access AGSArcGISMapImageSubLayer.sublayers error if layer is a group layer in map service (ArcGIS iOS swift SDK 100)?

342
2
10-23-2018 07:26 PM
PhamTheVinh
New Contributor II

(ArcGIS iOS swift SDK 100) Cannot access AGSArcGISMapImageSubLayer.sublayers if layer is a group layer in map service (mxd). The app is hang on?

2 Replies
JamesElkins
New Contributor

Having the same issue, any luck on work around yet?

0 Kudos
PhamTheVinh
New Contributor II

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)

   …...

}

0 Kudos