绘制图形类
Name | Type | Description |
---|---|---|
viewer |
Viewer |
传入viewer对象 |
Example:
let datasource = new Cesium.CustomDataSource("draw")
let draw = new GisEye.Draw(viewer,datasource)
draw.drawSatrtEvent.addEventListener(function(e){
console.log(e)
})
draw.drawEndEvent.addEventListener(function(e){
console.log(e)
})
draw.startDraw("Polygon")
Members
绘制结束事件
绘制开始事件
Methods
移除所有绘制对象
结束编辑
Name | Type | Description |
---|---|---|
okOrCancle |
boolean |
确定还是取消 |
开始绘制
Name | Type | Description |
---|---|---|
type |
DrawType |
绘制类型 |
开始编辑
Name | Type | Description |
---|---|---|
编辑图形entity对象 |
Entity |
停止当前标绘