AnsweredAssumed Answered

Retrieving legend symbol info from a service that has no legend

Question asked by bgfield on Feb 19, 2014
Latest reply on Jun 26, 2014 by sarahclark
I'm working on developing a custom legend for a webmap of ours by using esri.request to retrieve JSON information about the legend symbol and dynamically creating it for each of the layers in my map.  This works fine for our services: I sent the request to http://<mapservice>/legend, and I get the appropriate response.

However, this particular map is also using a few services from an external source, and when I visit the URL for those services, there's no link to "legend", and if I manually add "/legend" to the end of the service URL, I get an error saying Invalid URL.  The URL to one of the services in question is here: http://mdewin25.mde.state.md.us/ArcGIS/rest/services/Maryland_Shellfish_Closure_Areas/MapServer.

Is there a way to retrieve the legend symbol information from this service?  I'm concerned I'm going to have to just take screen shots of the legend symbols, save them as images, and add those to the map...I really don't want to have to do that.

Outcomes