Ask ArcGISDynamicMapServiceLayer to render in a different color?

370
1
08-07-2011 06:47 PM
SystemAdministrator
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?

Thanks!
0 Kudos
1 Reply
StephenLead
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.Layer
  |_ 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,
Steve
0 Kudos