When I init a AGSGDBFeatureServiceTable and call the loadCompletion block, inside the block when I print out the number of features sometimes I get the right number and sometimes I get zero.
AGSGDBFeatureServiceTable.loaded is YES.
Any ideas?
Code:
self.fServiceTable = [[AGSGDBFeatureServiceTable alloc] initWithServiceURL:url credential:self.credential spacialReference:self.mapView.spatialRefernece]; self.fServiceTable.loadCompletion = ^(NSError *error) { NSLog(@"Count = %lu", (unsigned long)weakSelf.fServiceTable.featureCount); };
A 'loaded' state of the feature service table means that the service is available/authenticated and the service info (meta data) is available. The query to fetch features is sent only when the layer is rendered on the map.
Hope this helps,
Suganya