Only call addToDrawing if sketchFeature
This commit is contained in:
@@ -346,7 +346,7 @@ ol.interaction.Draw.handleEvent = function(mapBrowserEvent) {
|
|||||||
}
|
}
|
||||||
var pass = !this.freehand_;
|
var pass = !this.freehand_;
|
||||||
if (this.freehand_ &&
|
if (this.freehand_ &&
|
||||||
mapBrowserEvent.type === ol.MapBrowserEvent.EventType.POINTERDRAG) {
|
mapBrowserEvent.type === ol.MapBrowserEvent.EventType.POINTERDRAG && this.sketchFeature_ !== null) {
|
||||||
this.addToDrawing_(mapBrowserEvent);
|
this.addToDrawing_(mapBrowserEvent);
|
||||||
pass = false;
|
pass = false;
|
||||||
} else if (mapBrowserEvent.type ===
|
} else if (mapBrowserEvent.type ===
|
||||||
|
|||||||
Reference in New Issue
Block a user