Use geometry type enum for configuring draw interaction

This allows us to cast single-part geometries to multi-part types before adding features to the target layer.  This doesn't yet allow for drawing multi-part geometries with multiple parts.  That can be handled separately.
This commit is contained in:
Tim Schaub
2013-11-12 11:30:32 -07:00
parent 8194ba9f0a
commit 5a898884ec
4 changed files with 61 additions and 12 deletions

View File

@@ -35,7 +35,7 @@
<p id="shortdesc">Example of using the Draw interaction.</p>
<form class="form-inline">
<label>Geometry type &nbsp;</label>
<select id="mode">
<select id="type">
<option value="polygon">Polygon</option>
<option value="linestring">Linestring</option>
<option value="point">Point</option>