ArcGIS JavaScript API - Need Table of Contents (TOC) Widget

7048
24
03-16-2016 07:21 AM
Status: Open
IanPeebles
Occasional Contributor III

The idea is to add in a table of contents widget for the JavaScript API.  Right now, there is the legend, then a layer checklist.  These two must be combined to prevent the user from having to toggle back and forth between the checklist and the legend.  Allow for the symbology to be displayed right next to the check box.  Allow for collapsing/expanding the TOC widget and allow for multiple group layers to be supported.  Below is an example:

0EME0000000kKDv

Current end users what an all inclusive TOC and not have to toggle back and forth between two widgets.

24 Comments
PieterHoltzhausen

Hi Brandon,

please would you kindly share your code for the custom TOC created using ArcGIS API for JS 4 

Pieter

mattprice

This has been a great resource for us, but it does not look like they plan to upgrade it to the 4.x API:

http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109#!

I agree with the others, switching between the list visibility and a legend is not the best UI for apps that

contain a large number of layers.  Esri is pushing the trend of targeted apps with just a few layers which

is great and the layer list works for those.  Over the years we have been developing our web presence and both our internal and external users have become somewhat sophisticated and expect a robust app (not just something targeted).  All I get is positive feedback from this approach.

Link to public app with TOC.  esri javascript 3.2 (not 3.20) API:

http://gis.co.santa-cruz.ca.us/PublicGISWeb/

TOC

Thanks if you can help!!!

mattprice

Thank you  Ang Hiap Lee  for updating the TOC to the 4.x API!!!

https://www.arcgis.com/home/item.html?id=0aa209f176444e29a80f7ea0118d737a

Matt

by Anonymous User

Thank you both! This continues to allow 'full' apps outside the WAB sphere. Many will continue to need kitchen sink app for power users in addition to targeted apps. Story Maps and templates are wonderful. We are big fans. But we need an ArcMap-Lite, a Swiss Army Knife viewer with most of our layers on call via LayerList TOC for power users.  Nianwei's widget is a pinnacle of user interface design and easily customizable. smackyourarh indeed.