Select to view content in your preferred language

How can the original Graphic symbol in a featureSet be retrieved?

611
1
11-15-2010 02:43 AM
AvronPolakow
Occasional Contributor
I have no problem displaying a custom symbol when displaying graphics from feature sets.

But who can I retrieve the original symbol set by the layer?
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
If you do not overwrite your FeatureLayer's Renderer property. After the layer is initialized, you can get the Renderer defined by the service, save this to an IRenderer object.

IRenderer originalRenderer = (sender as FeatureLayer).Renderer;

This is the original renderer if you have not yet set Renderer to your own custom renderer.
0 Kudos