AcMapLayer::SetVisible Method

Autodesk GIS Map Platform

AcMapLayer:: SetVisible Method

Sets the layer's potential visibility.

virtual void SetVisible(
    bool bVisible
);
Parameters 
Description 
visible 
True if the layer should be visible, false otherwise.  
Remarks

Note that setting this property to true will not necessarily guarantee the layer will be visible. The layer will be visible only when this property is true, all groups this layer is organized within are visible, and the current viewScale property of the map is within the scale ranges defined for this layer. Note also that the visibility of base map layers (those of type MgLayerType::BaseMap) cannot be changed. Attempting to do so will throw an MgInvalidOperationException.

MgXX classes belong to the OsGeo.MapGuide namespace and are descibed in the Geospatial Platform Reference.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].