Integrate a LayerListtoggle into the model of storyMap shortlist

2646
1
10-30-2014 02:36 AM
BertrandGenty
New Contributor II

Hello,

 

I shall wish to integrate a layer list toggle into a shortList StoryMap

We found this example on the web > http://mediamaps.esri.com/aagtour

layerListToggle.png

 

 

 

The current code calls a value which I do not understand in the div LayerListToggle.

<input type="radio" name="thematicRadios" value="USA_Median_Home_Value_9153">

 

I suppose that "value"   is about the name of the map ?  But what means the suffix 9153...

 

Could we get ourselves the code of this application somewhere with more explanations ?

 

Have already had you an experience of integration of layerlisttoggle in a shortlist or other storysMaps template ? Or could be other examples ?

 

Thank you for your experience feedback

 

Bertrand Genty

GIS Support

DSTI

City of Paris.

0 Kudos
1 Reply
LeeBock
New Contributor III

Hi Bertrand,

The value looks like the layer’s internal name – as encoded in the web map.  It is read from the response object (response.itemInfo.itemData.operationalLayers) that is returned from the createMap() call.

I took a look at the code for the app you have referenced.  Attached is a graphic which I believe shows the Javascript code changes required to populate that list.  Changes seem to be isolated to the initMap function.

code-changes.png


Lee