MapLayer (sName, ResourcePath)
Description
地圖圖層物件。
Position
MapLayer.js
Parameters
Parameter
|
Description
|
sName
|
圖層物件名稱。
|
ResourcePath
|
圖層資源路徑。
|
Properties
Property
|
Description
|
none
|
none
|
Methods
Method
|
Description
|
getName()
|
取得圖層物件名稱。
|
putName(newVal)
|
設定圖層物件名稱。
|
getTitle()
|
取得圖層物件標題。
|
putTitle(newVal)
|
設定圖層物件標題。
|
getVisible()
|
取得圖層物件的顯示狀態。
|
putVisible(newVal)
|
設定圖層物件狀態為顯示。
|
getResourcePath()
|
取得圖層物件資源路徑。
|
getLeft()
|
取得圖層物件左邊界值。
|
getTop()
|
取得圖層物件上邊界值。
|
getRight()
|
取得圖層物件右邊界值。
|
getBottom()
|
取得圖層物件下邊界值。
|
getLayers()
|
取得服務圖層的子圖層陣列。
|
getThematicLayer()
|
取得主題或作用圖層。
|
getFields()
|
取得圖層欄位內容。
|
getFeatureType()
|
取得圖徵類型。
|
Initialize(pMapBase)
|
初始化圖層。
|
RemoveSelf()
|
移除使用者自行建立圖層內容。
|
UpdateElement()
|
更新該圖層地圖元素。
|
RebuildElement()
|
重新建立該圖層地圖元素。
|
ExecuteQuery(expr, bGeom, pSucceed, pFailed)
|
查詢圖層內容。
|
ExecuteUpdate(sID, sGeom, sValues, pSucceed, pFailed)
|
更新特定圖徵內容。
|
ExecuteDelete(sID, pSucceed, pFailed)
|
刪除特定圖徵。
|
getSRName()
|
取得圖層的坐標系統名稱。
|
See live example
©2015 Supergeo Technologies Inc.
|