GraphicTracker's HitTest doesn't return correct value

349
1
02-02-2012 10:31 AM
RonVincent
Occasional Contributor
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
0 Kudos
1 Reply
sapnas
by
Occasional Contributor III
you may have to provide the timer code that adds the symbols on the map.
0 Kudos