DrawControl

画图组件父对象

new YS.DrawControl(youScene)

Name Type Description
youScene Object YouScene 对象
Example:
var drawControl = new DrawControl(youScene);
var polygon = new DrawPolygon3D();
drawControl.add(polygon)

Methods

add(feature)

添加一个画图对象
Name Type Description
feature DrawFeature 画图子类对象

clear()

清除所有画图对象

destroy()

销毁画图组件

remove(feature)

删除一个画图对象
Name Type Description
feature DrawFeature 画图子类对象