Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

ForceRefresh
GetClassDefinition
GetDisplayInLegend
GetExpandInLegend
GetFeatureClassName
GetFeatureGeometryName
GetFeatureSourceId
GetGroup
GetLayerDefinition
GetLayerType
GetLegendLabel
GetName
GetObjectId
GetSelectable
GetVisible
IsVisible
MgLayerBase
NeedsRefresh
SelectAggregate
SelectFeatures
SetDisplayInLegend
SetGroup
SetLayerDefinition
SetLegendLabel
SetName
SetSelectable
SetVisible
UpdateFeatures
virtual void MgLayerBase::SetVisible | ( | bool | visible | ) | `[virtual]`
Sets the layer's potential visibility. 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. .NET Syntax
`void SetVisible(bool visible);`
Java Syntax
`void SetVisible(boolean visible);`
PHP Syntax
`void SetVisible(bool visible);`
  Parameters:
  | visible | (boolean/bool) True if the layer should be visible, false otherwise.
Returns: Returns nothing.

Comments or suggestions? Send us feedback.