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

MapScript.Ja - layerObj.units Diff

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

!!layerObj.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 _layer As New layerObj(_map)

_layer.units = MS_UNITS.MS_KILOMETERS
!!!!マップファイル
  LAYER
    DATA "countries_simpl"
      METADATA
      END
    NAME "World"
    SIZEUNITS PIXELS
    STATUS ON
    TOLERANCEUNITS PIXELS
    TYPE POLYGON
    UNITS KILOMETERS
    CLASS
      METADATA
      END
      STYLE
        ANGLE 360
        COLOR 200 200 200
        OUTLINECOLOR 100 100 100
        SYMBOL 0
      END
    END
  END


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