I am Creating Map with some areas drawn as polygons. Each area have property AreaNumber. AreaNumber is given in input under map.
Problem is: How to cancel drawing if AreaNumber is not written in input?
Possible solutions make user unable to press create button while input is empty with popup message, or Cancel in map.on(draw: drawstart) if input is empty after giving popup message. How to call cancel buttons function from code?