MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual bool MgLayerBase::GetVisible ( ) [virtual]

Determines whether the layer is potentially visible.

Remarks:
Note that this method may return true even though the layer is not visible. This will occur if the visible flag of one of the groups this layer is organized within is not visible or when the current viewScale property of the map is outside the scale ranges defined for this layer.
.NET Syntax
bool GetVisible();
Java Syntax
boolean GetVisible();
PHP Syntax
bool GetVisible();
Returns:
Returns true if the layer is potentially visible, or false otherwise.
Example (PHP)
See MgMapBase class .