Can I select a graphic in ArcGIS runtime 100.2 (WPF) by clicking on its label?

556
0
10-31-2018 07:00 AM
ThomasLindegaard
New Contributor

Hi,

We can select graphics (points) on my map with the MapView.IdentifyGraphicsOverlayAsync() method (see parameters below). Our customers asks if they will be able to select the graphics by clicking on the labels. In my understanding we can't really get the extents of the labels or their boxes, so we need to rely on the MapView component to expose a method that can do it for us. 

Can it be done?

Kindly,

Thomas Lindegaard

cVation.com

try
{
   var identifyResults = await view.IdentifyGraphicsOverlayAsync(
   overlay,
   screenPoint,
   TOLERENCE,
   false,
   MAX_RESULTS);

}

TOLERENCE = 2, MAX_RESULTS = 2

Tags (1)
0 Kudos
0 Replies