23 lines
753 B
HTML
23 lines
753 B
HTML
---
|
|
layout: example.html
|
|
title: Measure
|
|
shortdesc: Example of using the ol.interaction.Draw interaction for creating simple measuring application.
|
|
docs: >
|
|
<p><i>NOTE: If use geodesic measures is not checked, measure is done in simple way on projected plane. Earth curvature is not taken into account</i></p>
|
|
tags: "draw, edit, measure, vector"
|
|
resources:
|
|
- https://code.jquery.com/jquery-1.11.2.min.js
|
|
---
|
|
<div id="map" class="map"></div>
|
|
<form class="form-inline">
|
|
<label>Geometry type </label>
|
|
<select id="type">
|
|
<option value="length">Length</option>
|
|
<option value="area">Area</option>
|
|
</select>
|
|
<label class="checkbox">
|
|
<input type="checkbox" id="geodesic">
|
|
use geodesic measures
|
|
</label>
|
|
</form>
|