v8.1.5

ht.cesium.FlattenCollection(model, map, config)

new FlattenCollection(model, map, config)

创建压平集

Parameters:
Name Type Attributes Description
model any

模型

map ht.cesium.Map

地图对象

config any <optional>

配置项

Methods

addFlattenRegion(id, positions, height) → {void}

新增一个多边形压平区域。

Parameters:
Name Type Attributes Description
id string | number

区域唯一标识

positions undefined

至少三个 WGS84 经纬高坐标点

height number <optional>

指定统一压平高度,单位为米;省略时取各坐标高度的最小值

Returns:
void

clear() → {void}

删除全部压平区域,并移除模型上的压平着色器。

Returns:
void

destroy() → {void}

销毁实例及其创建的 WebGL/Cesium 资源。

Returns:
void

isDestroyed() → {boolean}

当前实例是否已经销毁。

Returns:
boolean

removeFlattenRegion(id) → {void}

根据区域标识删除压平区域。

Parameters:
Name Type Description
id string | number
Returns:
void

update() → {void}

在 Cesium postRender 阶段调用,用于处理待更新的压平数据。

Returns:
void

updateFlattenRegionHeight(id, height) → {void}

更新指定压平区域的目标高度,单位为米。

Parameters:
Name Type Description
id string | number
height number
Returns:
void