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
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.
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.
Lee