UNPKG

756 BHTMLView Raw
1---
2layout: example.html
3title: Draw Features
4shortdesc: Example of using the ol.interaction.Draw interaction.
5docs: >
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.
10tags: "draw, edit, freehand, vector"
11---
12<div id="map" class="map"></div>
13<form class="form-inline">
14 <label>Geometry type &nbsp;</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>