Hiding Scale-specific Layers in Layer List?

2121
1
05-06-2016 12:19 PM
JasonMatney
New Contributor III


Is it possible to hide scale-specific Layers from users within the Layer List Widget? For instance, I'm using ESRI's Diversity Index map in my WAB Mapping Application, and currently, this is what users see when expanding the Index's layer in the Layer List:

Block-Groups-Discrete.png

Is it possible to consolidate, or even hide these repetitive layers - i.e. Block Group, Tract, etc? I realize each layer is critical for the proper scaling of the Diversity Index Map Layer. However, allowing users to see this level of detail seems like it will just cause confusion. Any potential solution to this?

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Esteemed Contributor

Jason,

  look at this thread where I provide code to gray out scale dependent layers. You can modify the code to instead set the style to display none for those layers out of scale range.

layers out of range greyed out