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.
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
Chris, it's almost what I am looking for. I still need the checkboxes to be able to display/hide the layers.
It's not "exactly' like the ArcGIS.com My Map template, but it should be close:
GitHub - Esri/basic-viewer-template: Classic Viewer is a configurable application template that enables you to display a…
Would that work for you? Here's a live sample:
http://www.arcgis.com/apps/OnePane/basicviewer/index.html?webmap=f5b13dbed07c46cdb783cf361833aa6b
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.