Add example for using the Draw extend function

This commit is contained in:
Otto Pellinen
2019-09-13 11:44:50 +03:00
committed by Olivier Guyot
parent 12ce4cc82a
commit 00261dff54
2 changed files with 132 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
---
layout: example.html
title: Draw and Extend Features
shortdesc: Example of using the extend function of ol/interaction/Draw interaction.
docs: >
Example of using the the extend function of Draw interaction. Select a geometry type from the
dropdown above to start drawing. To finish drawing, click the last
point. Click the green LineString Feature to extend coordinates to your drawing.
Extending 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 &nbsp;</label>
<select id="type">
<option value="LineString">LineString</option>
<option value="Polygon">Polygon</option>
<option value="None">None</option>
</select>
</form>