21 lines
832 B
HTML
21 lines
832 B
HTML
---
|
|
layout: example.html
|
|
title: Draw and Append Features
|
|
shortdesc: Example of using the appendCoordinates function of ol/interaction/Draw interaction.
|
|
docs: >
|
|
Example of using the the appendCoordinates function of Draw interaction. Select a geometry type from the
|
|
dropdown above to start drawing. To finish drawing, click the last point.
|
|
Click the purple Point to append the coordinates of the connected purple LineString feature to your drawing.
|
|
Appending is supported for drawing LineStrings and Polygons.
|
|
tags: "draw, edit, freehand, vector"
|
|
---
|
|
<div id="map" class="map"></div>
|
|
<form class="form-inline">
|
|
<label>Geometry type </label>
|
|
<select id="type">
|
|
<option value="LineString">LineString</option>
|
|
<option value="Polygon">Polygon</option>
|
|
<option value="None">None</option>
|
|
</select>
|
|
</form>
|