1 | ---
|
2 | layout: example.html
|
3 | title: Draw Features
|
4 | shortdesc: Example of using the ol.interaction.Draw interaction.
|
5 | docs: >
|
6 | Example of using the Draw interaction. Select a geometry type from the
|
7 | dropdown above to start drawing. To finish drawing, click the last
|
8 | point. To activate freehand drawing for lines, polygons, and circles, hold
|
9 | the `Shift` key.
|
10 | tags: "draw, edit, freehand, vector"
|
11 | ---
|
12 | <div id="map" class="map"></div>
|
13 | <form class="form-inline">
|
14 | <label>Geometry type </label>
|
15 | <select id="type">
|
16 | <option value="Point">Point</option>
|
17 | <option value="LineString">LineString</option>
|
18 | <option value="Polygon">Polygon</option>
|
19 | <option value="Circle">Circle</option>
|
20 | <option value="None">None</option>
|
21 | </select>
|
22 | </form>
|