How can we pin the legend on embeded webmap?

1478
2
Jump to solution
06-14-2017 11:48 AM
EmilyLee2
New Contributor III

Hello GeoNet,

Is there a way to pin down the legend on the embeded webmap without having to click on the >> button?

Thanks a lot!

Emily

0 Kudos
1 Solution

Accepted Solutions
KellyGerrow
Esri Frequent Contributor

Hey Emily Lee‌,

You can do this with url parameters: Use URL parameters to modify embedded maps—ArcGIS Online Help | ArcGIS 

Not a great example but add this to the embed url:

"legend=true&active_panel=legend&show_panel=true&amp"

<div class="embed-container"><iframe width="500" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" title="Combo Map" src="//webapps.maps.arcgis.com/apps/Embed/index.html?webmap=3907303fd15646178ac89990bad8a0d8&amp;extent=-180,-55.7798,180,82.0206&amp;zoom=true&amp;scale=true&amp;legend=true&amp;active_panel=legend&amp;show_panel=true&amp;disable_scroll=true&amp;theme=light"></iframe></div>

View solution in original post

2 Replies
KellyGerrow
Esri Frequent Contributor

Hey Emily Lee‌,

You can do this with url parameters: Use URL parameters to modify embedded maps—ArcGIS Online Help | ArcGIS 

Not a great example but add this to the embed url:

"legend=true&amp;active_panel=legend&amp;show_panel=true&amp"

<div class="embed-container"><iframe width="500" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" title="Combo Map" src="//webapps.maps.arcgis.com/apps/Embed/index.html?webmap=3907303fd15646178ac89990bad8a0d8&amp;extent=-180,-55.7798,180,82.0206&amp;zoom=true&amp;scale=true&amp;legend=true&amp;active_panel=legend&amp;show_panel=true&amp;disable_scroll=true&amp;theme=light"></iframe></div>

EmilyLee2
New Contributor III

Thank you very much, Kelly!  It works!!  😃

0 Kudos