Merge pull request #1660 from oterral/fix_drawend

Fix the feature sent  with the drawend event
This commit is contained in:
Éric Lemoine
2014-02-07 14:27:36 +01:00
+1 -2
View File
@@ -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));
};