featureLayer.outFields = [NSArray arrayWithObjects:@OBJECTID, @STATUS, @Shape nil];
AGSPopupInfo* info = [AGSPopupInfo popupInfoForGraphic:graphic]; //Filter the fields we want to display to the user NSMutableArray* fieldInfos = [info.fieldInfos mutableCopy]; NSMutableArray* displayWorthyFields = [[[NSMutableArray alloc] init] autorelease]; for (AGSPopupFieldInfo* fieldInfo in fieldInfos) { if([fieldInfo.fieldName isEqualToString:@STATUS] ){ [displayWorthyFields addObject:fieldInfo]; } } info.fieldInfos = displayWorthyFields;
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.