Cesium 繪製工具使用方法記錄
if(drawControl==null){
drawControl = new mars3d.Draw({
viewer: this.viewer,
hasEdit: !1,
onStopDrawing: function(t) {
r.bindMarkerEx(t)
},
onChangeEditing: function(t) { - 1 != e && clearTimeout(e),
e = setTimeout(function() {
null != t && r.saveEntity(t)
},
600)
}
});
}
drawControl.startDraw({
type: "polyline",
style: {
lineType: "dash",
color: "#ebe967",
width: 9,
clampToGround: !0
}
});
w.startDraw({
type: "polygon",
style: e.style || {
color: "#00fff2",
outline: !0,
outlineColor: "#fafa5a",
outlineWidth: 4,
opacity: .4,
clampToGround: !0
}
})
線樣式支援: case "lineType":
case "color":
case "opacity":
case "outline":
case "outlineWidth":
case "outlineColor":
case "outlineOpacity"