Constructor
new AnalyseFactory(viewer)
分析工厂类
Parameters:
Name | Type | Description |
---|---|---|
viewer |
Cesium.viewer |
Methods
cancelCreate()
取消创建
create(type, options) → {Promise}
创建分析对象
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
type |
analyType | 分析类型 |
||||||||||||||||||||||||||||||||||||||||
options |
Object | options中除了id、type和style分别对应分析ID、绘制皮筋儿类型和绘制时皮筋儿样式外,其余参数都会被传入对应的分析类构造函数 Properties
|
Returns:
analyseID 当前分析对象的ID
- Type
- Promise
get(uuid) → {Object}
根据ID得到创建的分析对象
Parameters:
Name | Type | Description |
---|---|---|
uuid |
String |
Returns:
analyse 分析对象
- Type
- Object
remove(uuid)
根据ID删除分析对象
Parameters:
Name | Type | Description |
---|---|---|
uuid |
String | 分析对象ID |
removeAll()
删除所有分析对象