new TerrainClip(options)
创建地形裁剪实例
Parameters:
Name | Type | Description |
---|---|---|
options |
TerrainClipOptions4Type | 初始化参数 |
Members
-
cesiumLayer :any
-
获取 cesium 图层
-
map :ht.cesium.Map
-
获取地图实例对象
-
property :TerrainClipOptions4Type
-
获取数据属性
-
uuid :string
-
获取唯一标识
Methods
-
addToMap(map, callback) → {void}
-
将数据叠加到地图上
Parameters:
Name Type Attributes Description map
ht.cesium.Map 数据所处的地图(map)实体对象
callback
function <optional>
回调函数
Returns:
void -
getClassName() → {string}
-
获取类名
Returns:
string -
getCoordinatePoints() → {void}
-
获取地形裁剪的边界点(经纬度)
Returns:
void -
getStyle(name) → {any}
-
获取样式属性值
Parameters:
Name Type Description name
string Returns:
any -
hide() → {void}
-
隐藏数据
Returns:
void -
remove() → {void}
-
移除图层
Returns:
void -
removeCesiumLayer() → {void}
-
移除 cesium 图层
Returns:
void -
s(name, value) → {any}
-
getStyle 和 setStyle 的简写
Parameters:
Name Type Attributes Description name
any <optional>
value
any <optional>
Returns:
any -
setCoordinatePoints(points) → {void}
-
设置裁剪的边界点(经纬度)
Parameters:
Name Type Description points
Array.<number> Returns:
void -
setStyle(name, value) → {void}
-
设置样式属性值
Parameters:
Name Type Description name
string value
any Returns:
void -
show() → {void}
-
显示数据
Returns:
void