Arcgis For Ios OC 版 在已有的图层上,修改图层的某一段颜色
AGSServiceFeatureTable *trailheadsTable = [[AGSServiceFeatureTable alloc] initWithURL:url];
AGSFeatureLayer *trailheadsFeatureLayer = [[AGSFeatureLayer alloc] initWithFeatureTable:trailheadsTable];
AGSSimpleLineSymbol *simbol = [[AGSSimpleLineSymbol alloc] initWithStyle:AGSSimpleLineSymbolStyleSolid color:[UIColor redColor] width:2];
trailheadsFeatureLayer.definitionExpression = @"line = '东线'";
trailheadsFeatureLayer.renderer = [[AGSSimpleRenderer alloc] initWithSymbol:simbol];
[self.map.operationalLayers addObject:trailheadsFeatureLayer];