From df261f6e0fdde8acd3f6a67e59fc3998be2594c9 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Thu, 5 Nov 2020 18:27:40 +0100 Subject: [PATCH] Initialize sketch point on Draw#extend() --- src/ol/interaction/Draw.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ol/interaction/Draw.js b/src/ol/interaction/Draw.js index 8f8e502dec..2239d0a6ba 100644 --- a/src/ol/interaction/Draw.js +++ b/src/ol/interaction/Draw.js @@ -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_)