Swipe app with just one legend panel

3056
4
Jump to solution
07-30-2014 03:26 PM
CONABIONC_for_Knowledge_and_Us
Occasional Contributor

Dear all,

working on this map: http://speck.conabio.gob.mx/manglarfotos/MEX/modis/index.html# I stumbled over the following question: Is it possible to use the swipe app with just one legend panel, i.e. one column? Any hints?

thank you & best regards,

Flo

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
MarkCooney
Occasional Contributor III

Hi Flo,

The legends are controlled in the web maps, so if you wanted one column, you could include all the layers you want in the legend in one map, then hide all the layers from the legend in the second map.  Here is what it looks like after I select the 'Hide in Legend' option for the 'major changes (greater than 25 ha)' layer in the content tab for the web map in the AGOL map viewer.

http://www.arcgis.com/apps/StorytellingSwipe/?appid=441cfbea938a41a98a7f12b949f628c5

Mark

View solution in original post

4 Replies
MarkCooney
Occasional Contributor III

Hi Flo,

The legends are controlled in the web maps, so if you wanted one column, you could include all the layers you want in the legend in one map, then hide all the layers from the legend in the second map.  Here is what it looks like after I select the 'Hide in Legend' option for the 'major changes (greater than 25 ha)' layer in the content tab for the web map in the AGOL map viewer.

http://www.arcgis.com/apps/StorytellingSwipe/?appid=441cfbea938a41a98a7f12b949f628c5

Mark

CONABIONC_for_Knowledge_and_Us
Occasional Contributor

Hi Mark,

I already tried that, but the result is, that the second column just shows "No legend available"?

http://speck.conabio.gob.mx/manglarfotos/MEX/Swipe/src/index.html

storymap.jpg

0 Kudos
MarkCooney
Occasional Contributor III

Looks like you are using a previous version of the Swipe app.  We recently released version 1.4 that handles the 'no legend' issue more elegantly.  You can find the download and documentation on the github page: Esri/swipe-map-storytelling-template-js · GitHub

CONABIONC_for_Knowledge_and_Us
Occasional Contributor

Thank you Mark, I´ll upgrade.

0 Kudos