From 73ef345a2db85a30ab83ee4194ca06c4942ec0fb Mon Sep 17 00:00:00 2001 From: Thomas Chandelle Date: Tue, 14 Feb 2017 09:26:35 +0100 Subject: [PATCH] Abort drawing to clear the sketch feature --- 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 cf9f93fc94..2b40080802 100644 --- a/src/ol/interaction/draw.js +++ b/src/ol/interaction/draw.js @@ -376,6 +376,7 @@ ol.interaction.Draw.handleUpEvent_ = function(event) { pass = false; } else if (circleMode && this.freehand_) { this.finishCoordinate_ = null; + this.abortDrawing_(); } return pass; };