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

scalebarObj.units

scalebarObj.units プロパティ

説明

距離の単位。MS_UNITSで指定する。MS_INCHES, MS_FEET, MS_MILES, MS_METERS, MS_KILOMETERS, MS_DD,MS_PIXELS

public int units {get; set;}
Public Property units() As Integer

サンプル

コード
Dim _map As New mapObj("")
Dim _scalebar As scalebarObj

_scalebar = _map.scalebar
With _scalebar
    .status = mapscript.MS_EMBED
    .units = MS_UNITS.MS_KILOMETERS
    .color = New colorObj(255, 0, 0, 0)
    .backgroundcolor = New colorObj(0, 255, 0, 0)
    .outlinecolor = New colorObj(255, 255, 0, 0)
    .position = MS_POSITIONS_ENUM.MS_UC
    .style = 1
    .postlabelcache = mapscript.MS_TRUE
End With
マップファイル
 SCALEBAR
   BACKGROUNDCOLOR 0 255 0
   COLOR 255 0 0
   IMAGECOLOR 255 255 255
   INTERVALS 4
   LABEL
     SIZE MEDIUM
     TYPE BITMAP
     BUFFER 0
     COLOR 0 0 0
     FORCE FALSE
     MINDISTANCE -1
     MINFEATURESIZE -1
     OFFSET 0 0
     PARTIALS TRUE
     POSITION CR
   END
   OUTLINECOLOR 255 255 0
   POSITION UC
   POSTLABELCACHE TRUE
   SIZE 200 3
   STATUS EMBED
   STYLE 1
   UNITS KILOMETERS
 END

参照

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

Last modified:2007/04/18 10:57:00
Keyword(s):
References:[scalebarObj メンバ]