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

MapScript.Ja - layerObj.extent Diff

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

!!layerObj.extent プロパティ
!!!説明
このレイヤーのデータ範囲の設定
public rectObj extent {get;}

Public ReadOnly Property extent() As rectObj

!!!サンプル
!!!!コード
Dim _map As New mapObj("")
Dim _layer As New layerObj(_map)
Dim _rect As New rectObj(0.0, 0.0, 0.0, 0.0, 0)

_rect = _layer.extent
Debug.WriteLine(_rect.maxx.ToString & "," & _rect.maxy.ToString)
→結果 -1,-1

intRet = _layer.setExtent(-139, 40, -50, 81)
_rect = _layer.extent
Debug.WriteLine(_rect.maxx.ToString & "," & _rect.maxy.ToString)
→結果 -50,81
!!!!マップファイル
影響なし (なんで?)
!!!参照
[[layerObj メンバ]] | [[(global) 名前空間|http://wiki.fdiary.net/MapScriptJa]]