Class: OGC3DTilesLayer

ov. OGC3DTilesLayer

new ov.OGC3DTilesLayer()

webgl/ov-OGC3DTilesLayer.js, line 6

OGC 3D Tiles圖層

Extends

Members

boundary

Boundary

Properties:
Name Type Description
Boundary GeoBoundary

圖層邊界。

readonlyname

圖層名稱

Properties:
Name Type Description
name String

名稱。

show

圖層顯示

Properties:
Name Type Description
show Boolean

是否顯示圖層。

tooltipSetting

Tooltip設定。

Properties:
Name Type Description
positionMode ov.TOOLTIP_POSITION_MODE

定位模式。

show Boolean

是否顯示。

offset GeoPoint

偏移。

style Object

Tooltip style,可自行擴充。

preProcessing ov.Layer~tooltipPreProcessingCallback

內容前處理方法。

positionPreProcessing ov.Layer~tooltipPositionPreProcessingCallback

座標前處理方法。

Methods

addClipPolygon(polygon, mode){Boolean}

webgl/ov-OGC3DTilesLayer.js, line 77

在OGC3DTiles上加入要裁切的區域。

Name Type Description
polygon GeoPolygon

多邊形區域。

mode ov.CLIP_MODE

裁切模式。

Returns:
Type Description
Boolean 是否加入成功。

inherited enableOrderIndependentTransparency(enable)

webgl/ov-Layer.js, line 280

透明度是否使用OIT演算法,正確性較高但效能會降低。

Name Type Description
enable Boolean

啟用OIT透明。

getAllClipPolygon(){Object|null}

webgl/ov-OGC3DTilesLayer.js, line 106

取得所有在OGC3DTiles上的裁切區域。

Returns:
Name Type Description
clipPolygon Object | null 裁切多邊形資訊。
Name Type Description
polygon Array.<GeoPolygon> 多邊形。
mode Array.<ov.CLIP_MODE> 模式。

inherited getHeader(callback)

webgl/ov-Layer.js, line 96

取得圖層標頭物件。

Name Type Description
callback ov.Layer~setOnGetHeaderCallback

請求標頭物件的回呼,不給則同步回傳(不保證回傳速度)。

inherited goto(callback)

webgl/ov-Layer.js, line 288

飛到圖層的位置。

Name Type Description
callback ov.Layer~gotoCallback

移動完成後執行的回呼。

removeClipPolygon(index){Boolean}

webgl/ov-OGC3DTilesLayer.js, line 91

移除先前在OGC3DTiles上的裁切區域。

Name Type Description
index Number

索引,不填則全刪。

Returns:
Type Description
Boolean 是否刪除成功。

inherited setAllowHoverEntity(allow)

webgl/ov-Layer.js, line 199

設定圖層的圖素是否能Hover。

Name Type Description
allow Boolean

是否能Hover。

inherited setAllowSelectEntity(allow)

webgl/ov-Layer.js, line 207

設定圖層的圖素是否能被選取。

Name Type Description
allow Boolean

是否能被點選。

inherited setDepthFunc(depthFunc)

webgl/ov-Layer.js, line 313

設置圖層深度測試的方式。

Name Type Description
depthFunc ov.DEPTH_FUNC

深度測試的方式。

setDrawEdge(enable)

webgl/ov-OGC3DTilesLayer.js, line 15

設定是否繪製邊緣線。

Name Type Description
enable Boolean

是否繪製邊緣線。

inherited setDrawSelectedEntityOutline(isDraw)

webgl/ov-Layer.js, line 151

設定圖層的圖素是否顯示outline。

Name Type Description
isDraw Boolean

是否顯示。

setEdgeColor(color, opacity)

webgl/ov-OGC3DTilesLayer.js, line 24

設定邊緣線顏色。

Name Type Description
color ov.Color

顏色。

opacity Number

不透明度。

setEdgeZScale(scale)

webgl/ov-OGC3DTilesLayer.js, line 67

設定邊緣線ZScale。

Name Type Description
scale Number

ZScale的值。

inherited setEntitySelected(entityID)

webgl/ov-Layer.js, line 324

設定圖素選取狀態。
未選取則變成選取狀態。
選取則變成未選取狀態。
-1清除所有選取狀態。

Name Type Description
entityID Number

圖素ID。

inherited setFadeNearFar(near, far){Boolean}

webgl/ov-Layer.js, line 272

設定圖層開始淡出與完全消失的距離。

Name Type Description
near Number

開始淡出的距離。

far Number

完全消失的距離。

Returns:
Type Description
Boolean 設定是否成功,當near > far時,會失敗。

inherited setHide(mode)

webgl/ov-Layer.js, line 305

設定圖層隱藏模式。

Name Type Description
mode ov.HIDE

隱藏模式。

inherited setHoverEntityHighlightColor(color, opacity)

webgl/ov-Layer.js, line 188

設定圖層圖素的Hover高亮顏色。

Name Type Description
color ov.Color

Hover高亮的顏色。

opacity Number

不透明度。

setNormalFilter(enable)

webgl/ov-OGC3DTilesLayer.js, line 35

邊緣線是否使用法線向量過濾。

Name Type Description
enable Boolean

true為開,false為關。

setNormalFilterSensitivity(sensitivity)

webgl/ov-OGC3DTilesLayer.js, line 51

設定邊緣線法線向量過濾靈敏度。

Name Type Description
sensitivity Number

靈敏度。

inherited setOffset(x, y, z){Boolean}

webgl/ov-Layer.js, line 218

設定圖層的公尺平移量(目前僅支援PhotogrammetryModel、PointCloud、Model、ModelSet、Pipeline)。

Name Type Description
x Number

向東西方向偏移,單位為公尺。

y Number

向南北方向偏移,單位為公尺。

z Number

向垂直於地表方向偏移,單位為公尺。

Returns:
Type Description
Boolean 變換是否成功,某些圖層不支持此操作時返回false。

inherited setOnClickEntity(callback)

webgl/ov-Layer.js, line 109

設定此圖層圖素被點擊時的回呼。

Name Type Description
callback ov.Layer~setOnClickEntityCallback

圖素被點擊時的回呼。

inherited setOpacity(opacity)

webgl/ov-Layer.js, line 143

設置圖層不透明程度。

Name Type Description
opacity Number

圖層不透明程度(0~1)。

inherited setOutlineColor(VisibleColor, HiddenColor)

webgl/ov-Layer.js, line 160

設定選取圖層圖素的Outline顏色。

Name Type Description
VisibleColor ov.Color

outline可視的顏色。

HiddenColor ov.Color

outline不可視的顏色。

setPlaneFilter(enable)

webgl/ov-OGC3DTilesLayer.js, line 43

邊緣線是否使用平面過濾。

Name Type Description
enable Boolean

true為開,false為關。

setPlaneFilterSensitivity(sensitivity)

webgl/ov-OGC3DTilesLayer.js, line 59

設定邊緣線平面過濾靈敏度。

Name Type Description
sensitivity Number

靈敏度。

inherited setResolutionScale(resolutionScale){Boolean}

webgl/ov-Layer.js, line 245

設定圖層解析度條件的Scale比例。

Name Type Description
resolutionScale Number

解析度條件的Scale比例(初始值1,越大越容易分裂,模型越細緻)。

Returns:
Type Description
Boolean 是否設定成功。

inherited setRotate(degree){Boolean}

webgl/ov-Layer.js, line 227

設定圖層的旋轉量(目前僅支援PhotogrammetryModel、PointCloud、Model、ModelSet、Pipeline)。

Name Type Description
degree Number

旋轉角度。

Returns:
Type Description
Boolean 變換是否成功,某些圖層不支持此操作時返回false。

inherited setScale(scale){Boolean}

webgl/ov-Layer.js, line 236

設定圖層的縮放量(目前僅支援PhotogrammetryModel、PointCloud、Model、ModelSet、Pipeline)。

Name Type Description
scale Number

縮放比例。

Returns:
Type Description
Boolean 變換是否成功,某些圖層不支持此操作時返回false。

inherited setSelectedEntityHighlightColor(color, opacity)

webgl/ov-Layer.js, line 176

設定圖層圖素的選取高亮顏色。

Name Type Description
color ov.Color

選取高亮的顏色。

opacity Number

不透明度。

inherited setUseFade(useFade)

webgl/ov-Layer.js, line 262

設定圖層是否開啟淡出功能。

Name Type Description
useFade Boolean

淡出開關。

inherited setZScale(zScale){Boolean}

webgl/ov-Layer.js, line 254

設定圖層的ZScale(ZScale:越小圖層越不會被遮擋)。

Name Type Description
zScale Number

ZScale的值。

Returns:
Type Description
Boolean 是否設定成功。