OpenLayers Draw Feature Example

Feature digitizing is in freehand mode by default. In freehand mode, the mouse is treated as a pen. Drawing begins on mouse down, continues with every mouse move, and ends with mouse up.

To turn freehand mode off, hold down the shift key while digitizing. With freehand mode off, one vertex is added with each click and double-clicks finish drawing. Freehand mode can be toggled on and off at any time while drawing.