Initialize sketch point on Draw#extend()
This commit is contained in:
@@ -1057,6 +1057,7 @@ class Draw extends PointerInteraction {
|
|||||||
const last = this.sketchCoords_[this.sketchCoords_.length - 1];
|
const last = this.sketchCoords_[this.sketchCoords_.length - 1];
|
||||||
this.finishCoordinate_ = last.slice();
|
this.finishCoordinate_ = last.slice();
|
||||||
this.sketchCoords_.push(last.slice());
|
this.sketchCoords_.push(last.slice());
|
||||||
|
this.sketchPoint_ = new Feature(new Point(last));
|
||||||
this.updateSketchFeatures_();
|
this.updateSketchFeatures_();
|
||||||
this.dispatchEvent(
|
this.dispatchEvent(
|
||||||
new DrawEvent(DrawEventType.DRAWSTART, this.sketchFeature_)
|
new DrawEvent(DrawEventType.DRAWSTART, this.sketchFeature_)
|
||||||
|
|||||||
Reference in New Issue
Block a user