[[self.findTask alloc] initWithURL:self.dynamicLayersURL]; self.findTask.delegate = self;
- (void)searchBarSearchButtonClicked:(UISearchBar *)theSearchBar { // Get find parameters AGSFindParameters *findParam = [[AGSFindParameters alloc] init]; findParam.contains = YES; findParam.layerIds = findLyrIds; findParam.returnGeometry = NO; findParam.searchFields = findFields; findParam.searchText = theSearchBar.text; // Execute the find task [self.findTask executeWithParameters:findParam]; }
self.findTask = [[AGSFindTask alloc] initWithURL:self.dynamicLayersURL];
self.findTask = [AGSFindTask findTaskWithURL:[NSURL http://ruby.kgs.ku.edu/arcgis/rest/services/oilgas/oilgas/MapServer]];
self.findTask.delegate = self;
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.