new SkylineAnalysis(map, options)
构造函数
Parameters:
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
map |
Glodon.CIMCube | CIMCube实例 | ||||||||||||||||||||
options |
Object | 配置参数
Properties
|
Methods
-
clear()
-
释放资源
-
doAnalysis()
-
开始分析功能
-
getSkylineArray()
-
获取天际线数据
Returns:
返回一个一维数组, 数组每项存储的为该列捕获到的天际线高度趋势(无单位 范围0~1) -
setSkylineColor(color)
-
设置天际线颜色
Parameters:
Name Type Description colorString | Cesium.Color 天际线颜色, 颜色字符串或颜色对象。 例:'RED','green','#00ff00'或Cesium.Color对象 -
setSkylineMode(mode)
-
设置天际线分析模式
Parameters:
Name Type Description modeString 天际线分析模式, 可选:'dynamic', 'static' -
setSkylineWidth(width)
-
设置宽度
Parameters:
Name Type Description widthNumber 天际线宽度, 单位:像素