Select to view content in your preferred language

How to change the default marker symbol of an ArcGISDynamicMapServiceLayer?

653
2
07-26-2011 08:02 AM
HugoCardenas
Emerging Contributor
I am loading a map service as an ???ArcGISDynamicMapServiceLayer???, for it is not a ???Feature Service???.  However, I am unable to change the default marker symbol assigned upon registration.  I should be able to change the default marker symbol after loading the ArcGISDynamicMapServiceLayer.  But ArcGISDynamicMapServiceLayer does not have ???Symbol??? and ???Renderer??? properties.  Any ideas?
Thanks!

Hugo.
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
This is because ArcGISDynamicMapServiceLayer generates images on the fly: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDyna.... If you wish to control the symbology, you would have to use either FeatureLayer or GraphicsLayer.
0 Kudos
dotMorten_esri
Esri Notable Contributor
On a side note, changing server-side rendered symbology will be available in ArcGIS Server 10.1. But until then, you have to download the features to the client and render them using the FeatureLayer to control rendering, as Jennifer suggests.
0 Kudos