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

MapScript.Ja - scalebarObj.label Diff

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

!!scalebarObj.label プロパティ
!!!説明
public labelObj label {get; set;}

Public Property label() As labelObj
!!!サンプル
!!!!コード
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)
      .style = 1

      '#####scalebar label#####
            .label.encoding = "SJIS"
            .label.antialias = True
            .label.autoangle = True
            .label.autofollow = True
            .label.autominfeaturesize = 1
            .label.font = "msgothic"
            .label.type = MS_FONT_TYPE.MS_TRUETYPE
            .label.color = New colorObj(100, 100, 100, 0)
            .outlinecolor = New colorObj(100, 100, 100, 0)
            .label.size = 12
            .label.partials = mapscript.MS_TRUE
            .label.buffer = 0
            .label.position = MS_POSITIONS_ENUM.MS_CR
            .label.wrap = ";"
            .label.shadowcolor = New colorObj(255, 255, 255, 0)
            .label.shadowsizex = 3
            .label.shadowsizey = 3


End With
!!!!マップファイル
  SCALEBAR
    BACKGROUNDCOLOR 0 255 0
    COLOR 255 0 0
    IMAGECOLOR 255 255 255
    INTERVALS 4
    LABEL
      ANGLE FOLLOW
      ANTIALIAS TRUE
      FONT "msgothic"
      MAXSIZE 256
      MINSIZE 4
      SIZE 12
      TYPE TRUETYPE
      BUFFER 0
      COLOR 100 100 100
      ENCODING "SJIS"
      FORCE FALSE
      MINDISTANCE -1
      MINFEATURESIZE AUTO
      OFFSET 0 0
      PARTIALS TRUE
      POSITION CR
      SHADOWCOLOR 255 255 255
      SHADOWSIZE 3 3
      WRAP ';'
    END
    OUTLINECOLOR 100 100 100
    POSITION LL
    SIZE 200 3
    STATUS EMBED
    STYLE 1
    UNITS KILOMETERS
  END
!!!参照

[[scalebarObj メンバ]] | [[(global) 名前空間|http://wiki.fdiary.net/MapScriptJa]]