Select to view content in your preferred language

LayerList 2.1 option to displays sublayer

4295
11
08-29-2016 10:14 AM
haThach
Regular Contributor

Have anyone know if there is a way to configure a dynamic map server with 3 sublayers, the first layer is active as default. if a user turn on the second sublayer, any displays sublayer within this "Sample Locations" map server will turn off? I don't want a user to manually have to turn off the displays "Active" layer.

Thanks,

Ha Thach

Tags (1)
0 Kudos
11 Replies
RobertScheitlin__GISP
MVP Emeritus

Shannon,

   That would be the case as you have a group nested inside another group. I did not setup the code to search through nested groups recursively.

Gianna_BBSRC
Regular Contributor

Hello,

I have a similar issue. However, I'd like only some checkboxes to act as radio buttons (ie with mutually exclusive viewing functionality).

I've managed to hide the checkboxes for group layers and applied Robert Scheitlin, GISP's code above in replacement for the _onCKSelectNodeClick function.

The problem I'm facing is that I'm dealing with mosaic raster time-series data displaying different scenarios which are mutually exclusive (ie I don't want them displayed at the same time on top of each other). Additionally, within each mosaic dataset are three folders (boundary, footprint and image) which I'd like to hide from the end user. So the structure for my datasets looks like this:

and I've managed to achieve this in WAB developer (with checkboxes shown acting as radio buttons):

But the only checkboxes I'd like to provide are at the mosaic dataset level (layer 2 and 3 in example) with boundary, footprint, image layers all on but hidden AND I'd like those checkboxes to act like radio buttons with mutually exclusive viewing functionality, as below.

Any advice you could provide will be massively useful.

Many thanks,

Gianna

(I've posted this as a new question and there's an answer to it here)

layerlist  

0 Kudos