Send the feature drawn with the drawend event

This commit is contained in:
oterral
2014-02-07 13:45:13 +01:00
parent 8701942d40
commit 3bb90c5b4c

View File

@@ -477,8 +477,7 @@ ol.interaction.Draw.prototype.finishDrawing_ = function(event) {
if (!goog.isNull(this.source_)) { if (!goog.isNull(this.source_)) {
this.source_.addFeature(sketchFeature); this.source_.addFeature(sketchFeature);
} }
this.dispatchEvent(new ol.DrawEvent(ol.DrawEventType.DRAWEND, this.dispatchEvent(new ol.DrawEvent(ol.DrawEventType.DRAWEND, sketchFeature));
this.sketchFeature_));
}; };