<< Click to Display Table of Contents >>

supergis server javascript api

 

ToolbarControl (pParentElem, padding, nCol)

 

 

Description

地圖工具列控制項物件。

 

Position

Controls.js

 

 

Parameters

 

Parameter

Description

pParentElem

網頁DOM容器物件(Container Object),控制項物件將建構於此容器物件內。通常是div元素,也可以是span或其他類似容器件。

padding

設定工具按鈕與按鈕之間間隔。

nCol

設定工具列列數。

 

 

Properties

 

Property

Description

none

none

 

 

Methods

 

Method

Description

FinalRelease()

工具列解構函式,將工具列由容器物件中移除。

AddTool(pMapBase, pTool, imgPath, altString)

新增工具按鈕,參數pTool為工具函式物件,imgPath為工具影像路徑,altString為工具代換文字。

selectTool(Index)

變更目前使用工具,參數Index為工具索引值。

 

 


©2015 Supergeo Technologies Inc.