ModelFlattenControl

场景压平组件

new YS.ModelFlattenControl(ys, options)

场景压平组件
Name Type Description
ys Object YouScene对象
options Object 对象有下面这些属性:
Name Type Default Description
isDrag Boolean true optional 组件是否可以拖拽(默认值为true)
className String optional 自定义组件的class名
Implements:
Example:
var youScene = new YS.YouScene({sdkServerUrl: 'http://ys.infoearth.com:9090/Server/'});
youScene.init("global");

var modelFlatten = new YS.ModelFlattenControl(youScene,{});

//开始压平
modelFlatten.show();
 
//销毁组件
modelFlatten.destroy();
Demo:

Methods

destroy()Undefined

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

isDestroyed()Boolean

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

abstractshow()

显示组件
Implements:

Events

controlClosed

点x关闭组件事件