new ov.UI()
oview UI類命名空間
Classes
Methods
-
staticov.UI.BubbleUI(parameter)
common/PilotGaea-UI.js, line 278 -
新增UI物件會隨著ov.TerrainView的攝影機狀態投影得到氣泡的位置,可以用來放html元素,ex:iframe、ov.chart生成的圖表等等
Name Type Description parameterObject 氣泡UI設定參數
Name Type Description xnumber 氣泡UI的起始x位置,註:這裡位置是地圖的位置
ynumber 氣泡UI的起始y位置,註:這裡位置是地圖的位置
znumber 氣泡UI的起始z位置,註:這裡位置是地圖的位置
widthnumber 氣泡UI的寬
heightnumber 氣泡UI的高
lockPointHorizontalstring 鎖點的橫位置,可以設置left、middle、right
lockPointVerticalstring 鎖點的縱位置,可以設置top、middle、bottom
offsetXnumber 氣泡UI的偏移x位置
offsetYnumber 氣泡UI的偏移y位置
titlestring 標題的內容文字,若沒有設置則不會出現標題
haveButtonboolean 是否有按鈕
onClosefunction 關閉時的回呼事件
Example
var bubbleUI = new ov.UI.BubbleUI(parameter);
-
staticov.UI.Container(parameter)
common/PilotGaea-UI.js, line 23 -
UI物件父類別,可以用來放html元素,ex:iframe、ov.chart生成的圖表等等
Name Type Description parameterObject UI設定參數
Name Type Description xnumber UI的起始x位置
ynumber UI的起始y位置
widthnumber UI的寬
heightnumber UI的高
lockPointHorizontalstring 鎖點的橫位置,可以設置left、middle、right
lockPointVerticalstring 鎖點的縱位置,可以設置top、middle、bottom
offsetXnumber UI的偏移x位置
offsetYnumber UI的偏移y位置
titlestring 標題的內容文字,若沒有設置則不會出現標題
closeButtonboolean 是否有關閉按鈕
onClosefunction 關閉時的回呼事件
Example
不要使用此父類別來生成UI
-
staticov.UI.UIContext(updateCallback, div)
common/PilotGaea-UI.js, line 487 -
建一個容器來存放管理UI
Name Type Description updateCallbackfunction update需要執行的function
divNode UI物件的父元素(節點)
-
staticov.UI.WindowUI(parameter)
common/PilotGaea-UI.js, line 476 -
新增UI物件固定在畫面的某一位置上,可以用來放html元素,ex:iframe、ov.chart生成的圖表等等
Name Type Description parameterObject UI設定參數
Name Type Description xnumber UI的起始x位置,註:位置為螢幕位置
ynumber UI的起始y位置,註:位置為螢幕位置
widthnumber UI的寬
heightnumber UI的高
lockPointHorizontalstring 鎖點的橫位置,可以設置left、middle、right
lockPointVerticalstring 鎖點的縱位置,可以設置top、middle、bottom
offsetXnumber UI的偏移x位置
offsetYnumber UI的偏移y位置
titlestring 標題的內容文字,若沒有設置則不會出現標題
haveButtonboolean 是否有按鈕
onClosefunction 關閉時的回呼事件
Example
var windowUI = new ov.UI.WindowUI(parameter);