From 3bb90c5b4c0fc37eab2504d50426a7dc1b86cb41 Mon Sep 17 00:00:00 2001 From: oterral Date: Fri, 7 Feb 2014 13:45:13 +0100 Subject: [PATCH] Send the feature drawn with the drawend event --- src/ol/interaction/drawinteraction.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ol/interaction/drawinteraction.js b/src/ol/interaction/drawinteraction.js index ffce0209f1..778e12c710 100644 --- a/src/ol/interaction/drawinteraction.js +++ b/src/ol/interaction/drawinteraction.js @@ -477,8 +477,7 @@ ol.interaction.Draw.prototype.finishDrawing_ = function(event) { if (!goog.isNull(this.source_)) { this.source_.addFeature(sketchFeature); } - this.dispatchEvent(new ol.DrawEvent(ol.DrawEventType.DRAWEND, - this.sketchFeature_)); + this.dispatchEvent(new ol.DrawEvent(ol.DrawEventType.DRAWEND, sketchFeature)); };