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;
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.