setLayerVisibility

Set the visibility state of a layer.
setLayerVisibility([in] LONG layerHandle, [in] VARIANT_BOOL visibility)
This function sets the visibility state of a layer. The visibility argument should be true to make the layer visible, or false to make it not visible.

The layer argument is an opaque layer handle, returned by getLayer.

VB6:
' toggle the state of layer i layer = viewer.getLayer(i) visible = viewer.getLayerVisibility(layer) viewer.setLayerVisibility layer, Not visible
getNumLayers
getLayer
getLayerName
getLayerVisibility
getLayerViewState
getLayerPrintState