Opens a layer.


Namespace: ActualMap
Assembly: ActualMap (in ActualMap.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function Open( _ 
   ByVal layerSource As Object _ 
) As Layer
C#
public static Layer Open(
   object layerSource
)
C++
public:
 static Layer Open(
   Object layerSource
)
J#
public static Layer Open(
   object layerSource
)
JScript
public static  function Open(
   layerSource : Object
) : Layer

Parameters

layerSource
An object expression representing the full file name of the map file or can be one of DynamicPoints, DynamicLayer, WmsLayer, TileLayer or SpatialDatabaseLayer object.

Return Value

The method returns a Layer object in case if the layer was opened successfully and null(Nothing) in case of an error.

See Also