This method returns a value indicating whether a Layer object is visible.


Namespace: AspMap.Web
Assembly: AspMapNET (in AspMapNET.dll)

Syntax

Visual Basic (Declaration)
Public Function IsLayerVisible( _ 
   ByVal layer As Object _ 
) As Boolean
C#
public bool IsLayerVisible(
   object layer
)
C++
public:
 bool IsLayerVisible(
   Object layer
) sealed 
J#
public bool IsLayerVisible(
   object layer
)
JScript
public  function IsLayerVisible(
   layer : Object
) : bool

Parameters

layer
The index to a layer or a valid layer name.

Remarks

The IsLayerVisible method checks the Visible property of the Layer object and the values of the MaxScale and MinScale properties to determine if the layer is visible. In the latter case, the layer is visible only when MapScale is between MaxScale and MinScale.

See Also