Open dmmishchenko opened 3 years ago
Steps:
Enable polyline drawing:
Start drawing polyline
add one point
after adding one point, click on it
draw:created event fired
I found this at line 233:
_shapeIsValid: function () { return true; },
I think there must be something like this:
_shapeIsValid(): boolean { return this._markers.length >= 2; },
we also need to add handling for this error, since the current error message is not valid
Demo: https://jsfiddle.net/dmmishchenko/gmnk1a0f/10/
How to reproduce
Steps:
Enable polyline drawing:
Start drawing polyline
add one point
after adding one point, click on it
draw:created event fired
I found this at line 233:
I think there must be something like this:
we also need to add handling for this error, since the current error message is not valid
What behaviour I'm expecting and which behaviour I'm seeing
Minimal example reproducing the issue
Demo: https://jsfiddle.net/dmmishchenko/gmnk1a0f/10/