Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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]https://203.177.0.139/ArcGIS/rest/services/Leng/2013_Road_Data_elf/MapServer/[/code]

Pretty sure it has a legend because this has the correct content [code]https://203.177.0.139/ArcGIS/rest/services/Leng/2013_Road_Data_elf/MapServer/legend[/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: 203.177.0.139/ArcGIS/rest/services/Leng/2013_Road_Data_elf/… –  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

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

share|improve this answer
    
I have before, but not when combined with AGOL. I'll try that one, thanks. –  NeoJigglypuff Mar 18 at 9:12

Your Answer

 
discard

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.