Merge pull request #10259 from fredj/abortDrawing
Remove all the sketch features in abortDrawing
This commit is contained in:
@@ -881,12 +881,10 @@ class Draw extends PointerInteraction {
|
||||
abortDrawing_() {
|
||||
this.finishCoordinate_ = null;
|
||||
const sketchFeature = this.sketchFeature_;
|
||||
if (sketchFeature) {
|
||||
this.sketchFeature_ = null;
|
||||
this.sketchPoint_ = null;
|
||||
this.sketchLine_ = null;
|
||||
this.overlay_.getSource().clear(true);
|
||||
}
|
||||
this.sketchFeature_ = null;
|
||||
this.sketchPoint_ = null;
|
||||
this.sketchLine_ = null;
|
||||
this.overlay_.getSource().clear(true);
|
||||
return sketchFeature;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user