// layer.URL = /rest/services/signs/FeatureServer/0 self.queryTask = [[AGSQueryTask alloc] initWithURL:layer.URL]; self.queryTask.delegate = self; self.query = [AGSRelationshipQuery relationshipQuery]; self.query.outFields = [NSArray arrayWithObject:@*]; self.query.objectIds = [NSArray arrayWithObject:[NSNumber numberWithInt:68]]; self.query.relationshipId = 0; self.query.returnGeometry = YES; [self.queryTask executeWithRelationshipQuery:self.query]; ... // delegate method - (void)queryTask:(AGSQueryTask *)queryTask operation:(NSOperation*)op didExecuteWithRelatedFeatures:(NSDictionary *)relatedFeatures { // queryTask.URL = /rest/services/signs/FeatureServer/0 // but should be: /rest/services/signs/FeatureServer/1 // since related features we got here belongs to table /1, not /0 NSLog(@url: %@", queryTask.URL); }
I'm wondering whether it's possible to have two related layer on two different servers (they will have different URLs)
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.