Draw Feature Example

# OpenLayers Draw Feature Example

Demonstrate on-screen digitizing tools for point, line, and polygon creation.

- navigate
- draw point
- draw line
- draw polygon

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.