Select to view content in your preferred language

Display full legend in AGOL app

671
2
09-25-2017 06:49 AM
MaraKaminowitz
Frequent Contributor

Is there a template or WAB widget that displays the entire legend of a map whether the layers are turned on or not?

0 Kudos
2 Replies
KellyGerrow
Esri Alum

Can you share your app or web map?

Are the layers turned off using scale dependency or do you want to have the capability to turn the layers on and off and maintain the symbology in a separate legend. I'd like to understand this workflow further to see if we have anything built in the software to enable this.

As a quick fix... You can always take a screenshot or image of your legend and embed it in the pop up (not super elegant, but it will work)

Example:

https://webapps.maps.arcgis.com/apps/GeoList/index.html?appid=7a778ed6062348e7acde8be1b2039c1e 

Sample Pop up

<font size='2'>Legend</font><img src='https://webapps.maps.arcgis.com/sharing/rest/content/items/418c2b084f6e4b258762fcd001dd5e92/data' style='align:left;height:200px;width:195px;display: block;' /><font size='4'>Energy Tax Credits for {ZIP_CODE}</font>

Image URL

-Kelly

0 Kudos
MaraKaminowitz
Frequent Contributor

I can't show you the app but I want to have the capability to turn the layers on and off and maintain the symbology for all the layers in a separate legend.  I considered the screen capture in an about panel, it will be plan B if needed.

0 Kudos