Send the feature drawn with the drawend event
This commit is contained in:
1 parent
8701942d40
commit
3bb90c5b4c
1 file changed
+1
-2
@@ -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));
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user