How can I change the property of viewer after I have defined viewer?

down votefavorite

});

var  viewer = new Cesium.Viewer('cesiumContainer', {
    selectionIndicator : false,
    infoBox : false

After I have defined viewer,I want to change selectionIndicator and infobox to false.How can i?

Hi there,

Some options, like selectionIndicator, are only available when constructing the Viewer.

You can hide it after construction, but you need to do it a little differently by setting properties of the widget view model.

viewer.selectionIndicator.viewModel.isVisible = false;

``

Thanks,

Gabby

1 Like