This question is concerning layer definitions.I follow the sample code snippets posted at the very bottom of this page:http://help.arcgis.com/en/arcgismobile/10.0/apis/iOS/1.8/concepts/index.html#//00pw0000004m000000.ht...Here is my code:AGSDynamicMapServiceLayer *dyn = [[AGSDynamicMapServiceLayer alloc] initWithURL:[NSURL URLWithString:@"http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_1990-2000_Population_Change/MapServer"]];
int layerID = 3;
NSString *defString = @"NAME = 'Middlesex County'";
AGSLayerDefinition *layerDef = [AGSLayerDefinition layerDefinitionWithLayerId:layerID definition:defString];
dyn.layerDefinitions = [NSArray arrayWithObject:layerDef];
[mapView removeMapLayerWithName:@"previous layer"];
self.fbMapServiceUIView = [mapView addMapLayer:_dyn withName:@"some name"];
Instead of just 4 counties being loaded, the entire choropleth map is being loaded as though there were no layer definitions being applied.Has anyone out there successfully applied layer definitions? Any suggestions?Thanks...