Ask ArcGISDynamicMapServiceLayer to render in a different color?

08-07-2011 06:47 PM
New Contributor
Is is possible, in the ArcGIS Javascrpit API, to get an ArcGisDynamicMapServiceLayer to render in a different colour, or would the ArcGIS Service need to be changed?

0 Kudos
1 Reply
Regular Contributor III
My understanding (and I could be wrong) is that this is not possible when using a dynamic map layer.

To change the symbology you need to use a Renderer, which applies to a Graphics Layer.

A Feature Layer is a type of graphics layer, but a dynamic layer is not. See the diagram on the Feature layer help file:

Class hierarchy
  |_ esri.layers.GraphicsLayer
        |_ esri.layers.FeatureLayer

Therefore your options could be to display your data using a feature layer, or change the symbology at the ArcMap level.

Hope this helps,
0 Kudos