new VolumeCalculation(map [, options])
体积测算
Parameters:
| Name | Type | Argument | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
map |
Glodon.CIMCube | CIMCube实例 | ||||||||||
options |
Object |
<optional> |
配置参数
Properties
|
Example
analysis.on("change", function(e){
console.log(e, "体积测算变更");
});
Methods
-
dispose()
-
销毁对象
-
do()
-
开始计算
-
getVolume(featureId)
-
获取对象的体积
Parameters:
Name Type Description featureIdstring 指定feature Returns:
指定对象的体积- Type
- Number
-
setLayer(layer)
-
设置分析数据图层
Parameters:
Name Type Description layerObject 指定图层
Events
-
CHANGE
-
计算更新后触发
Example
volumeCalculation.on("change", function (event) { console.log(event); })