AnsweredAssumed Answered

AGSFeatureLayer not showing Display Field on Map

Question asked by HrishiPol on Oct 23, 2015

Hi All,


I'm trying to load AGSFeatureLayer on map view.

I'm able to show layer on map but its not showing Display Field which is there in feature layer.


Below is my sample code.


            AGSFeatureLayer *fl = [AGSFeatureLayer featureServiceLayerWithURL:[weakSelf.userInfo objectForKey:@"structureURL"] mode:AGSFeatureLayerModeOnDemand];


            NSLog(@"Display field: %@", fl.displayField);

            structureLayer = fl;

          [weakSelf.tiledLayer.mapView addMapLayer:fl];

I've tried to see Display field using NSLog but still it showing NULL.


Anyone know how we can show it?


Thank you in advance.