Get values used to define a renderer

Discussion created by msbsmith on Aug 26, 2011
Latest reply on Aug 30, 2011 by msbsmith

Can anyone please show me some code that allows me to get the values of a layer's renderer?

What I mean is this: If I define a classification in my service where a shape is symbolised differently based on a value (e.g. 'A' = blue, 'B' = red 'C' = green), then this automatically comes through in the editing template picker for the user to pick the type of feature they want to draw.  I don't want to use the template picker however, I just want to be able to programmatically get the values which define the symbology for this layer, 'A', 'B' and 'C' so that I can do other things with the values.

I have had a look through the reference material, but to be honest I'm not sure of the best place to start, and if anyone has done this already it could save an awful lot of time, so any help would be great.

Thank you very much,