SubmergenceControl

淹没分析组件

new YS.SubmergenceControl(YS, options)

淹没分析组件
Name Type Description
YS YouScene YouScene对象
options Object 对象有下面这些属性:
Name Type Default Description
isDrag Boolean true optional 组件是否可以拖拽(默认值为true)
height Boolean 1000 optional 淹没高度mm
speed Boolean 100 optional 淹没速度mm/s
div String | HTMLDomElement optional 淹没分析要放入的盒子的id或者dom对象。不传则放到ys盒子里面
className String optional 自定义组件的class名
Implements:
Example:
var youScene = new YS.YouScene({sdkServerUrl: 'http://ys.infoearth.com:9090/Server/'});
youScene.init("global");

var submergence = new YS.SubmergenceControl(youScene,{});

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

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

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

Methods

clean()

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

destroy()Undefined

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

isDestroyed()Boolean

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

abstractshow()

显示组件
Implements:

Events

controlClosed

点x关闭组件事件