How to use LayerToggle
srinipalavalli opened this issue · 5 comments
srinipalavalli commented
Hi,
Can anyone help me in how to use LayerToggle in CMV , or how to add Group Layers to CMV?
Thanks,
Srinivas
tmcgee commented
The LayerToggle widget is very simple to configure. You just provide the IDs for the layers you want to toggle between. Here is an example configuration:
layerToggle: {
include: true,
type: 'invisible',
path: 'widgets/LayerToggle',
options: {
map: true,
layerGroup: [
'super',
'ugb',
'soi'
]
}
},
srinipalavalli commented
Hi, Thanks for your reply and its working fine. How can I use two map services as a single group layer in CMV?
I want make two group layers and use LayerToggle for those two group layers
srinipalavalli commented
Can anyone please help me on the above query?.
tmcgee commented
Grouping layers in the CMV layerControl widget is not supported at this time.
srinipalavalli commented
Ok. Thanks for the quick response.