AGSFeatureLayer not showing Display Field on Map

10-23-2015 03:45 AM
New Contributor

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.

0 Kudos
0 Replies