AnsweredAssumed Answered

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

Question asked by tlp@cvation.com on Oct 31, 2018

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

Outcomes