Select to view content in your preferred language

Layers Visibility

321
0
02-23-2020 12:47 PM
nafotoisrael
New Contributor

Hi all,

I'm using mmpk project with group layers,

 when I want to turn on featureCollectionLayers the code

layer.isVisible = true

works fine, however after I've updated the sdk to 100.7.0 the code to make layers visible doesn't work any more:

layers.forEach {
    if (it is GroupLayer){
        legendGroupMap[it.name] = it.layers
        it.layers.forEach{ mLayers->
            mLayers.isVisible = true
        }
    }

how do i make layers inside a group layer visible in 100.7.0?

thanks in advance.

Tags (1)
0 Kudos
0 Replies