AnsweredAssumed Answered

Possible to show more than on feature layer?

Question asked by bmckenney on Sep 27, 2012
Latest reply on Sep 28, 2012 by bmckenney
Typo in the Post Title. Sorry. Meant to say more than ONE feature layer.

I'm trying to add more than one feature layer to the mapView at a time. Is this possible? There are a total of 9 feature layers that could be shown at once if possible. Here is what I have tried already. It seems only the first layer is shown, and not subsequent layers. Any suggestions would be appreciated.



    self.incidentsLayer = [AGSFeatureLayer featureServiceLayerWithURL:[NSURL URLWithString:@"http://egisws02.nos.noaa.gov/ArcGIS/rest/services/MP/MPA_Inventory_Fishing/MapServer/1"] mode:AGSFeatureLayerModeOnDemand];     self.incidentsLayer.outFields = [NSArray arrayWithObject:@"*"];     self.incidentsLayer.infoTemplateDelegate = self.incidentsLayer;          self.restrictedLayer = [AGSFeatureLayer featureServiceLayerWithURL:[NSURL URLWithString:@"http://egisws02.nos.noaa.gov/ArcGIS/rest/services/MP/MPA_Inventory_Fishing/MapServer/2"] mode:AGSFeatureLayerModeOnDemand];     self.restrictedLayer.outFields = [NSArray arrayWithObject:@"*"];     self.restrictedLayer.infoTemplateDelegate = self.restrictedLayer;               [self.mapView addMapLayer:self.incidentsLayer withName:@"Incidents"];      [self.mapView addMapLayer:self.incidentsLayer withName:@"Restricted"];

Outcomes