I have added multiple objects to the same coordinate and layer. I have four layers and tried adding multiple objects for each layers but when I tap on the object it returns an array only with 4 elements - one per layer.
I also set maximumResultsPerOverlay to both a high number and to nil as well - neither of these worked.
The code I refer to:
ArcGIS.MapViewReader { proxy in
ArcGIS.MapView(map: model.map,
viewpoint: model.viewpoint,
graphicsOverlays: model.graphicsOverlays)
.onSingleTapGesture { screenPoint, mapPoint in
onSingleTapGesture(screenPoint: screenPoint, mapPoint: mapPoint, proxy: proxy)
}
...
}
}
private func onSingleTapGesture(screenPoint: CGPoint, mapPoint: ArcGIS.Point, proxy: ArcGIS.MapViewProxy) {
Task {
guard !model.geometryEditor.isStarted,
let identifiedGraphicsOverlays = try? await proxy.identifyGraphicsOverlays(screenPoint: screenPoint,
tolerance: 100,
maximumResultsPerOverlay: <span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:">😎</span> else {
return
}
// Here identifiedGraphicsOverlays.count = 4
...
}
}I'm using v200.5.1.
Is it a known issue?
Thanks.