rvinc

GraphicTracker's HitTest doesn't return correct value

Discussion created by rvinc on Feb 2, 2012
Latest reply on Feb 2, 2012 by sshetty
Hello,

I'm having an issue with returning the ID of a graphic when using the GraphicTracker. Any one else seen this? Esri sample works when adding individual graphics one at a time but mine are all added at once on a timer. Once the graphics are added I can see that they have their ID but once I use HitTest via a selection tool they all come out with a value of Zero. Anyone else seen this?

int graphicID = graphicTracker.Add(point, trackerSymbol); // returns a correct value when added

int id = graphicTracker.HitTest(X, Y); // returns 0 for any graphic

Ron

Outcomes