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;
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.