new ov.Layer()
webgl/ov-Layer.js, line 5
圖層
Members
-
boundary
-
Boundary
Properties:
Name Type Description Boundary
GeoBoundary 圖層邊界。
-
readonlyname
-
圖層名稱
Properties:
Name Type Description name
String 名稱。
-
show
-
圖層顯示
Properties:
Name Type Description show
Boolean 是否顯示圖層。
Methods
-
enableOrderIndependentTransparency(enable)
webgl/ov-Layer.js, line 195 -
透明度是否使用OIT演算法,正確性較高但效能會降低。
Name Type Description enable
Boolean 啟用OIT透明。
-
getHeader(callback)
webgl/ov-Layer.js, line 61 -
取得圖層標頭物件。
Name Type Description callback
ov.Layer~setOnGetHeaderCallback 請求標頭物件的回呼,不給則同步回傳(不保證回傳速度)。
-
getOpacity(){Number}
webgl/ov-Layer.js, line 122 -
取得當前圖層不透明程度。
Returns:
Type Description Number opacity 圖層不透明程度(0~1)。 -
goto(callback)
webgl/ov-Layer.js, line 203 -
飛到圖層的位置。
Name Type Description callback
ov.Layer~gotoCallback 移動完成後執行的回呼。
-
setDepthFunc(depthFunc)
webgl/ov-Layer.js, line 228 -
設置圖層深度測試的方式。
Name Type Description depthFunc
ov.DEPTH_FUNC 深度測試的方式。
-
setExposure(exposure)
webgl/ov-Layer.js, line 98 -
設定顏色曝光度。
Name Type Description exposure
Number 曝光度。
-
setFadeNearFar(near, far){Boolean}
webgl/ov-Layer.js, line 187 -
設定圖層開始淡出與完全消失的距離。
Name Type Description near
Number 開始淡出的距離。
far
Number 完全消失的距離。
Returns:
Type Description Boolean 設定是否成功,當near > far時,會失敗。 -
setFreezeAdjust(freezeAdjust)
webgl/ov-Layer.js, line 236 -
設定圖層是否暫停分裂。
Name Type Description freezeAdjust
Boolean 是否暫停分裂。
-
setFreezeCollapse(freezeCollapse)
webgl/ov-Layer.js, line 244 -
設定圖層是否暫停收斂。
Name Type Description freezeCollapse
Boolean 是否暫停收斂。
-
setGamma(gamma)
webgl/ov-Layer.js, line 106 -
設定顏色伽碼值。
Name Type Description gamma
Number 伽碼值。
-
setHide(mode)
webgl/ov-Layer.js, line 220 -
設定圖層隱藏模式。
Name Type Description mode
ov.HIDE 隱藏模式。
-
setIsUnderground(IsUnderground)
webgl/ov-Layer.js, line 252 -
此設定影響圖資與地形的作畫順序
Name Type Description IsUnderground
boolean 是否在地底
-
setLightAmbientColor(lightAmbientColor)
webgl/ov-Layer.js, line 90 -
設定環境光顏色。
Name Type Description lightAmbientColor
ov.Color 環境光顏色。
-
setLightColor(lightColor)
webgl/ov-Layer.js, line 82 -
設定光線顏色。
Name Type Description lightColor
ov.Color 光線顏色。
-
setOffset(x, y, z){Boolean}
webgl/ov-Layer.js, line 133 -
設定圖層的公尺平移量(目前僅支援PhotogrammetryModel、PointCloud、Model、ModelSet、Pipeline)。
Name Type Description x
Number 向東西方向偏移,單位為公尺。
y
Number 向南北方向偏移,單位為公尺。
z
Number 向垂直於地表方向偏移,單位為公尺。
Returns:
Type Description Boolean 變換是否成功,某些圖層不支持此操作時返回false。 -
setOpacity(opacity)
webgl/ov-Layer.js, line 114 -
設置圖層不透明程度。
Name Type Description opacity
Number 圖層不透明程度(0~1)。
-
setResolutionScale(resolutionScale){Boolean}
webgl/ov-Layer.js, line 160 -
設定圖層解析度條件的Scale比例。
Name Type Description resolutionScale
Number 解析度條件的Scale比例(初始值1,越大越容易分裂,模型越細緻)。
Returns:
Type Description Boolean 是否設定成功。 -
setRotate(degree){Boolean}
webgl/ov-Layer.js, line 142 -
設定圖層的旋轉量(目前僅支援PhotogrammetryModel、PointCloud、Model、ModelSet、Pipeline)。
Name Type Description degree
Number 旋轉角度。
Returns:
Type Description Boolean 變換是否成功,某些圖層不支持此操作時返回false。 -
setScale(scale){Boolean}
webgl/ov-Layer.js, line 151 -
設定圖層的縮放量(目前僅支援PhotogrammetryModel、PointCloud、Model、ModelSet、Pipeline)。
Name Type Description scale
Number 縮放比例。
Returns:
Type Description Boolean 變換是否成功,某些圖層不支持此操作時返回false。 -
setUseFade(useFade)
webgl/ov-Layer.js, line 177 -
設定圖層是否開啟淡出功能。
Name Type Description useFade
Boolean 淡出開關。
-
setUseLight(useLight)
webgl/ov-Layer.js, line 74 -
設定是否使用光線。
Name Type Description useLight
Boolean 是否使用光線。
-
setZScale(zScale){Boolean}
webgl/ov-Layer.js, line 169 -
設定圖層的ZScale(ZScale:越小圖層越不會被遮擋)。
Name Type Description zScale
Number ZScale的值。
Returns:
Type Description Boolean 是否設定成功。
Type Definitions
-
gotoCallback()
webgl/ov-Layer.js, line 211 -
- See:
-
gotoCallback()
webgl/ov-TerrainOverlay.js, line 90 -
- See:
-
setOnGetHeaderCallback(header)
webgl/ov-Layer.js, line 64 -
Name Type Description header
Object 標頭物件。
- See: