Select to view content in your preferred language

Layer List Refresh

2186
0
06-01-2016 01:31 PM
JohnLucotch1
New Contributor II

Good Afternoon,

I have been struggling with the Layer List _onCkSelectNodeClick.  I have a scenario:

if (layerInfo.id === 'Basemap_0'){

this.layerListWidget.operLayerInfos.getLayerInfoById('Basemap').setTopLayerVisible(true);

this.layerListWidget.operLayerInfos.getLayerInfoById('Basemap_0').setTopLayerVisible(true);

....

this.layerListWidget._refresh();

Is there anyway to not refresh the LayerList Widget so a user doesn't have to navigate back to the layers they were working with?  My goal is to set the parent layer visible when a sublayer is checked.  I have it working when all the layers are expanded but it seems redundant to have it open at all times.

Thanks

0 Kudos
0 Replies