Adds a new layer to the map. Returns the LayerHandle of the added layer.


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

Syntax

Visual Basic (Declaration)
Public Function AddLayer( _ 
   ByRef newLayer As Object,  _ 
   ByVal newPosition As Integer _ 
) As Integer
C#
public int AddLayer(
   ref object newLayer,
   int newPosition
)
C++
public:
 int AddLayer(
   Object% newLayer,
   int newPosition
) sealed 
J#
public int AddLayer(
   object newLayer,
   int newPosition
)
JScript
public  function AddLayer(
   newLayer : Object,
   newPosition : int
) : int

Parameters

newLayer
The new layer object. Must inherit from RenderableLayer.
newPosition
Layer position in map. 0 = First Drawn/Bottom Layer; Max=Last Drawn/Top Layer

See Also