getLayerVisibility

Get the visibility state of a layer.
getLayerVisibility([in] LONG layerHandle, [out, retval] VARIANT_BOOL *visibility)
This function returns the current visibility state of a layer - true if the layer is visible, false if it is 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
setLayerVisibility
getLayerViewState
getLayerPrintState