tmcgee/cmv-widgets

How to use LayerToggle

srinipalavalli opened this issue · 5 comments

Hi,

Can anyone help me in how to use LayerToggle in CMV , or how to add Group Layers to CMV?

Thanks,
Srinivas

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'
        ]
    }
},

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

Can anyone please help me on the above query?.

Grouping layers in the CMV layerControl widget is not supported at this time.

Ok. Thanks for the quick response.