Divide the draw features example into two examples
This commit is contained in:
@@ -5,11 +5,8 @@ shortdesc: Example of using the ol.interaction.Draw interaction.
|
||||
docs: >
|
||||
Example of using the Draw interaction. Select a geometry type from the
|
||||
dropdown above to start drawing. To finish drawing, click the last
|
||||
point. To activate freehand drawing for lines and polygons, hold the `Shift`
|
||||
key. Square drawing is achieved by using Circle mode with a `geometryFunction`
|
||||
that creates a 4-sided regular polygon instead of a circle. Box drawing uses a
|
||||
custom `geometryFunction` that takes start and end point of a line with 2
|
||||
points and creates a rectangular box.
|
||||
point. To activate freehand drawing for lines, polygons, and circles, hold
|
||||
the `Shift` key.
|
||||
tags: "draw, edit, freehand, vector"
|
||||
---
|
||||
<div id="map" class="map"></div>
|
||||
@@ -20,8 +17,6 @@ tags: "draw, edit, freehand, vector"
|
||||
<option value="LineString">LineString</option>
|
||||
<option value="Polygon">Polygon</option>
|
||||
<option value="Circle">Circle</option>
|
||||
<option value="Square">Square</option>
|
||||
<option value="Box">Box</option>
|
||||
<option value="None">None</option>
|
||||
</select>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user