AnsweredAssumed Answered

Custom TOC / Legend Javascript API

Question asked by canadajebus on May 28, 2015
Latest reply on May 28, 2015 by csgeosol1

I am trying to build a Custom TOC / Legend with the ArcGIS Javascript API.  I have tried many different prebuild widgets and other googlable things but none of them seem to work completely, or be compatible with my browser requirements of IE9.  So I've been working on my own.


The issue I am having now is accessing the Legend image/symbol/png of each layer within my ArcGISDynamicMapServiceLayer so that I can insert it in the HTML.  I can see that there is a JSON thing for it within the REST page.  How do I access this and use it within my JavaScript page?  My JSON knowledge is small, but I'm sure once I learn this it will help with many other tasks.  Thanks!