Select to view content in your preferred language

identifyGraphicsOverlays using a rectangle

631
1
01-25-2017 04:50 AM
NorbertThoden
Frequent Contributor

ArcGISRuntime V100 offers the method GeoView::identifyGraphicsOverlay (and similar) to identifiy graphics on a screenlocation - This works fine.

How can i use a rectangle (most of the times horizontal) to specify the graphics to be identified?

Do i have to iterate over all graphics, retrieve their geometry, use GeometryEngine::inersect or similar by myself?
(Can you recommend a method, which is quick?)

Or do i miss something and there is simple way?

Thx

Norbert

Tags (2)
0 Kudos
1 Reply
LucasDanzinger
Esri Frequent Contributor

Norbert-

If you were using a FeatureTable to store your data, you could use queryFeatures and provide a spatial filter in the QueryParameters. But the GraphicsOverlay does not have such a method. Instead, you would need to come up with an algorithm similar to what you suggest.