this.draw.finishDrawing()
Stop drawing and add the sketch feature to the target layer. The module:ol/interaction/Draw~DrawEventType.DRAWEND event is dispatched before inserting the feature.
使用方法:
可以通过键盘快捷键操作,结束draw绘制,将当前绘制的图形添加到目标图层中。
this.draw.finishDrawing()
Stop drawing and add the sketch feature to the target layer. The module:ol/interaction/Draw~DrawEventType.DRAWEND event is dispatched before inserting the feature.
使用方法:
可以通过键盘快捷键操作,结束draw绘制,将当前绘制的图形添加到目标图层中。