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(target)
-
获取对象的体积
Parameters:
Name Type Description targetstring 指定feature Returns:
指定对象的体积- Type
- Number
-
setCalculationTarget(target)
-
设置计算目标。
Parameters:
Name Type Description targetstring 计算目标 -
setLayer(layer)
-
设置分析数据图层
Parameters:
Name Type Description layerObject 指定图层 -
setOpts(options)
-
设置体积计算选项。
Parameters:
Name Type Description optionsObject 选项 Properties
Name Type Description fieldstring 体积字段 -
stop()
-
停止体积计算。
-
visibleUpdate(tile)
-
按瓦片更新体积累计。
Parameters:
Name Type Description tileObject 瓦片
Events
-
CHANGE
-
计算更新后触发
Example
volumeCalculation.on("change", function (event) { console.log(event); })