Merge pull request #11718 from ahocevar/draw-extend

Initialize sketch point on Draw#extend()
This commit is contained in:
Andreas Hocevar
2020-11-11 09:40:42 +01:00
committed by GitHub

View File

@@ -1057,6 +1057,7 @@ class Draw extends PointerInteraction {
const last = this.sketchCoords_[this.sketchCoords_.length - 1];
this.finishCoordinate_ = last.slice();
this.sketchCoords_.push(last.slice());
this.sketchPoint_ = new Feature(new Point(last));
this.updateSketchFeatures_();
this.dispatchEvent(
new DrawEvent(DrawEventType.DRAWSTART, this.sketchFeature_)