我正在发送几何查询以显示在地图上选择的要素并获取选定的要素。这两件事都工作正常,但是当我检查一个特性的属性字典时,它只包含 5 个键/值对,但 android 中的相同函数返回 10 个键/值对。
我正在做这样的查询
let query = AGSQueryParameters()
if let selectionGraphicGeometry = selectionGraphic?.geometry {
let geometry = AGSGeometryEngine.simplifyGeometry(selectionGraphicGeometry)
query.geometry = geometry
}
selectableLayer?.selectFeatures(withQuery: query, mode: AGSSelectionMode.add, completion: { (result, error) in
if let features = result?.featureEnumerator().allObjects {
for feature in features {
let keys = feature.attributes.allKeys
}
}
}
我不知道我在哪里做错了