OpenLayers 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繪製,將當前繪製的圖形添加到目標圖層中。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章