Create  Edit  Diff  FrontPage  Index  Search  Changes  History  Source  RSS  wikifarm  Login

mapObj.layerorder

mapObj.layerorder プロパティ

説明

レイヤーの表示順を表す配列へのポインタ

public SWIGTYPE_p_int layerorder {get; set;}
Public Property layerorder() As SWIGTYPE_p_int

サンプル

コード
Dim _map As mapObj = New mapObj("")
Dim _layer As New layerObj(_map)
Dim _layer2 As New layerObj(_map)
Dim _intarray As intarray
Dim _cast As SWIGTYPE_p_int

_layer.name = "lay001"
_layer2.name = "lay002"
_intarray = _map.getLayersDrawingOrder
_cast = _intarray.cast

_intarray.setitem(0, 1)
_intarray.setitem(1, 0)
_map.layerorder = (_cast)

Debug.WriteLine(_map.getLayer(0).name)
Debug.WriteLine(_map.getLayer(1).name)

Debug.WriteLine(_intarray.getitem(0).ToString)
Debug.WriteLine(_intarray.getitem(1).ToString)

→結果
lay001
lay002
1
0
マップファイル
 LAYER
     METADATA
     END
   NAME "lay002"
   SIZEUNITS PIXELS
   STATUS OFF
   TOLERANCEUNITS PIXELS
   UNITS METERS
 END

 LAYER
   LABELITEM "NAME"
     METADATA
     END
   NAME "lay001"
   SIZEUNITS PIXELS
   STATUS OFF
   TOLERANCEUNITS PIXELS
   UNITS METERS
   CLASS
     LABEL
       ANGLE 0.000000
       ANTIALIAS TRUE
       FONT "msgothic"
       MAXSIZE 256
       MINSIZE 4
       SIZE 12
       TYPE TRUETYPE
       BUFFER 0
       COLOR 0 0 0
       ENCODING "SJIS"
       FORCE FALSE
       MINDISTANCE -1
       MINFEATURESIZE -1
       OFFSET 0 0
       PARTIALS TRUE
       POSITION CL
     END
     METADATA
     END
     STYLE
       ANGLE 360
       COLOR 200 200 200
       OUTLINECOLOR 100 100 100
       SYMBOL 0
     END
   END
 END

参照

mapObj メンバ | (global) 名前空間

Last modified:2007/02/15 14:47:02
Keyword(s):
References:[mapObj メンバ]