Suppose you have a map service containing a point layer and a line layer. Each of these layers is defined with a single symbol in the service. (This seems to be a requirement to get the map tip to work.) On the map we want to present these 2 layers with symbol colors representing the YEAR attribute from the service layer. This would be done with a custom renderer and associated symbol. If we are presenting 5 years worth of data with each year being a different color, would it be best to create a FeatureLayer for each year, or can all 5 years be presented in a single FeatureLayer (1 for points and 1 for lines)? Assume the years do not need to be manipulated individually. Is there a sample around that shows how to render different symbols within a layer based on the attribute data?
Thanks