Select to view content in your preferred language

ArcGIS.com map (code behind)

2182
3
02-12-2016 06:45 AM
BrianFoley1
Emerging Contributor

When I type the url for one of my services into the address bar, I am able to select ArcGIS.com map.  If I select this I am brought to http://www.arcgis.com/home/webmap/viewer.html, with my service being displayed.  I can then select 'Content' and I see all the layers and sub-layers for that service.  I can then choose to show the legend.  This is exactly how I wany the web app I am writing to look.  Where can I find the code to do this ?  Thanks.

Tags (1)
0 Kudos
3 Replies
ChrisSmith7
Honored Contributor
0 Kudos
BrianFoley1
Emerging Contributor

Chris, it's almost what I am looking for.  I still need the checkboxes to be able to display/hide the layers. 

0 Kudos
BrianFoley1
Emerging Contributor

I just tried using Nliu's TOC and it is working 'almost' like I need it to.  This is what I have so far.  My issue is that for Layers 1 & 2, the image for the layer is shown on the same level as the layer.  I want to show this as a sub-layer, similar to layer 0 above.  For example

  1. Layer 0
    1. Layer 0 - Legend 0
    2. Layer 0 - Legend 1
  2. Layer 1
    1. Layer 1 - Legend 1
  3. Layer 2
    1. Layer 2 - Legend 1
LUIC_01.png
0 Kudos