Select to view content in your preferred language

Read Symbology From REST

631
0
02-08-2013 11:12 AM
chuckfrank
Frequent Contributor
Hi All,

When I bring feature layers into a map I can specify symbology by adding tags like this:

<esri:symbol>
  <esri:SimpleMarkerSymbol color="0xFFCC00" alpha="1" size="12" style="circle">
    <esri:outline>
      <esri:SimpleLineSymbol color="0x000000" style="solid" />
    </esri:outline>
</esri:SimpleMarkerSymbol>


What I'm interested in doing it reading it from the REST service and not having to specify the symbol like I have in the code above.  Is there a way to get these same properties - color, outline, symbol, etc. from a feature layer.  I looked through the properties in debug mode, but didn't know if I should use the graphic provider or graphics collection.  It would really help to see how it's called in code.  I'm working on my own version of a legend and I'd really like to get information for the symbols to help me build the legend.

Thanks,
Chuck
Tags (2)
0 Kudos
0 Replies