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;
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.