Hi
We have a map with many layers that are grouped by category. As this is a public facing map,it needs to be as foolproof as possible as some users may have no experience using web maps. I don't want to leave the group layers switched on as they may think that it means all the data will be displayed (especially when they are not expanded), but, if I leave them switched off, I run the risk of them not switching the group layer on after they have clicked the sub layer.
Is there a way to configure the layer list widget in WAB developer to automatically switch the group layer on if a sub layer is checked?
Thanks in advance
Solved! Go to Solution.
With a lot of help from Robert Scheitlin, GISP, I have now go some code that will hide the check box for group layers, which is a great workaround for my needs.
This enables me to leave the group layers switched on in the web map and the citizens only need to check to boxes next to the sub layers. This means the won't get confused with the check box next to the group having a tick next to it and think all the layers in that group are on and they won't forget to check the group layer box as it is already on.
https://community.esri.com/thread/222346-hide-checkbox-for-group-layer-in-layer-list-widget
Mark,
I think this sounds like a cool idea and a practical one at that. However, it seems that group layers have always kind of been this conundrum of an issue with no real easy solution. Searching around, I have found many requests/questions regarding group layers and not many of them have really solid solutions.
Based on that, this might be good to add to ArcGIS Ideas
However, take a look at this thread (which has links for other threads) that may be helpful in your endeavor towards this process:
Group layers in the layerlist widget
(additional thread which may have helpful info: https://community.esri.com/thread/142644 )
Mmm yes...yes indeed...
Interestingly, ArcEarth already does this perfectly. They just need to implement it for all apps and APIs including ArcApps Partial Checkboxes across platform in TOC - Web AppBuilder, ArcMap, API
TOC Needs....
1. partial checkboxes
2. ability at least as programmer option to let sublayers turn on regardless of parent visibility
3. ability to group layers in webmap even if dynamic sublayers of service (that would mean a lot less "groups" would be necessary and really clean up the TOC tree)
4. move legend swatch symbol to inline to left of name of layer so you don't need to expand to see it, if it is only one single symbol. Like AGS JS TOC. (seeing a symbol like hydrant is faster than reading the word hydrant)
5. more of a nice - to have one day but it would be neat to let users re-order layers on the fly, or perhaps even remove layers, from the list. If the App State remembered that, and perhaps even what layers were added from Add Data, that'd be neat too. But that's a distant nice-to have vs the above 1 to 4.
https://community.esri.com/message/613921?commentID=613921#comment-613921
LayerList - allow users to re-order layers
Group layers in the layerlist widget
https://community.esri.com/ideas/11896?commentID=39628#comment-39628 --- this one looks interesting, may have to check out and play with.
With a lot of help from Robert Scheitlin, GISP, I have now go some code that will hide the check box for group layers, which is a great workaround for my needs.
This enables me to leave the group layers switched on in the web map and the citizens only need to check to boxes next to the sub layers. This means the won't get confused with the check box next to the group having a tick next to it and think all the layers in that group are on and they won't forget to check the group layer box as it is already on.
https://community.esri.com/thread/222346-hide-checkbox-for-group-layer-in-layer-list-widget