pml

AGSGraphic identifier

Discussion created by pml on Nov 15, 2011
Latest reply on Dec 4, 2011 by pml
I have a bit of code that does the following. Push an AGSGraphic into an array. Push each AGSGraphic item from the array into an AGSGraphicsLayer. I have a tableView whose cells correspond with the AGSGraphics shown on the map. After I tap the point to get the callout, I would like to tap the accessoryButton which calls the tableView with the related cell highlighted. The problem is establishing a relationship between the AGSGraphics and the UITableView cells. I am looking for a way to uniquely identify an AGSGraphic, preferably the same way array items are identified. I would think AGSGraphicsLayer holds an array of AGSGraphics. Perhaps there is a way similar to [array1 objectAtIndex:indexPath.row]; which can be used against an AGSGraphicsLayer? A statement such as this one would have to be called in mapView:didClickCalloutAccessoryButtonForGraphic (I assume).

Thanks for any help,
Paul Lohr

Outcomes