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?


1 Answer 1


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

  • I have before, but not when combined with AGOL. I'll try that one, thanks. Mar 18, 2014 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, 2014 at 21:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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