Solved! Go to Solution.
NSDictionary *parsedData = [responseString AGSJSONValue];
self.mapCrimePoints = [parsedData objectForKey:@"Records"];
maxValuesReached = [[parsedData objectForKey:@"ReachedMaxValues"] boolValue];
[self.crimeGraphicsLayer removeAllGraphics];
//[self.crimeGraphicsLayer dataChanged]; // Shouldn't be necessary
[self.crimeGraphicTemplates removeAllObjects];
NSMutableArray *crimeHash = [NSMutableArray array];
NSMutableDictionary *helperDict = [NSMutableDictionary dictionary];
for (NSDictionary *crime in self.mapCrimePoints) {
// create hash of points by x,y
}
for(NSArray *crimesArray in crimeHash) {
// create AGSGraphic and add to graphics layer
}
//Tell the layer to redraw itself
[self.crimeGraphicsLayer dataChanged];
self.crimeGraphicsView.hidden = NO;