Get Legend Symbol URL

Discussion created by shepa006 on Sep 5, 2012
Latest reply on Sep 18, 2012 by songissimo
I'm working on a map application using the javascript api and am building a table of contents to provide some custom formatting. I am able to add the layers to the map and build a list of checkboxes using the layer id (or title). However, I can't find a clean example of how to get the url for the layer symbol.

Does anyone know of a good example on how to find the url for a layer's symbol? If I can get the symbol url then I can use innerHTML to display the symbol along with the layer id. The services are hosted on ArcGIS Server 10.0x and Legend is enabled so I can manually navigate to the URL but I need to make this dynamic.