MeasureHeightControl

高度量算组件

new YS.MeasureHeightControl(ys)

高度量算组件
Name Type Description
ys YouScene YouScene对象
Implements:
Example:
var youScene = new YS.YouScene({sdkServerUrl: 'http://ys.infoearth.com:9090/Server/'});
youScene.init("global");

var heightMeasure = new YS.MeasureHeightControl(youScene);

//开始量测
heightMeasure.show();

//清除量测结果
heightMeasure.clean();

//结束量测
heightMeasure.destroy();
Demo:

Methods

clean()

清理组件的临时数据、成果等
Implements:

destroy()Undefined

销毁组件 重载时请务必调用IControl.prototype.destroy.apply(this);
Returns:
Implements:

isDestroyed()Boolean

该组件是否销毁 (true代表销毁了,false代表未销毁), 销毁后将不可以再使用
Returns:
Implements:

show()

生成高度量算组件
Implements: