Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I use the legend of a mapservice as part of a AGOL generated webmap?

This is the map I have created which does not have a legend

And this is the map service in use [code][/code]

Pretty sure it has a legend because this has the correct content [code][/code]

Could this still be a certificate issue? Our certificate is not signed or anything. So we are placing the map service address as an exception to an internet browser for it to allow access to "unsigned" content. By doing this we are able to use the AGOL webmaps with mapservice from an unsigned source.

What doesnt seem to make sense is why, after doing the exception list, would AGOL allow features to be drawn but not the legends (or the info configured for the pop-up dialog, as we also recently found out). What specific about these that makes them excluded?

share|improve this question
You could scrape the drawingInfo for each layer:… – evv_gis Nov 21 '13 at 15:04
The drawinInfo referes to the symbology, right? Isn't it needed as data for the legend? – NeoJigglypuff Nov 22 '13 at 0:03

You could try using a legend/TOC widget such as this one.

It scrapes the layer definitions for you and builds a TOC, including layer visibility control (optional?).

enter image description here

share|improve this answer
I have before, but not when combined with AGOL. I'll try that one, thanks. – NeoJigglypuff Mar 18 '14 at 9:12
Having learned more about AGOL since this was posted, I think the preferred approach would be to create a web map that uses your map service(s) as a layer, which should allow you to use the AGOL legend tools. Haven't tried it myself yet though. – brichins Dec 10 '14 at 21:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.