<< Click to Display Table of Contents >>
new sg.geometry.MultiPart()
Description
建立一個 multi-part 物件
Position
Geometry.js
Properties
Properties |
Type |
Description |
extent |
sg.geometry.Extent |
幾何資料範圍 |
type |
String |
幾何資料的類型 |
parts |
Array.<sg.geometry.Geometry> |
幾何資料陣列 |
Methods
Methods |
Type |
Description |
||||||
addPart(part) |
sg.geometry.Geometry |
加入幾何資料到集合裡 (點線面皆可加入)
|
||||||
getExtent() |
Returns: sg.geometry.Extent |
取得幾何資料範圍 Returns:
|
||||||
update(updatePart) |
sg.geometry.MultiPart |
更新multi-part幾何資料 (更新後,舊資料會被新資料取代)
|
||||||
Clone() |
Returns: sg.geometry.MultiPart |
複製multi-part幾何物件並回傳 Returns:
|
||||||
transform(a,b,c,d,e,f,g,h,i) |
Nmber |
透過轉換參數,對multi-part幾何物件進行座標轉換
|
||||||
forEachVertex(callback) |
function |
透過callback方法,回傳線段幾何物件的所有頂點資料 callback(context) { //回傳內容,參考Point linestring Polygon //的forEachVertex(callback) //說明 } |
©2015 Supergeo Technologies Inc.