Improvements to the tracing example

* no embedded geojson
* better behaviour on draw end (no lingering preview line)
* clearer comments
* support for multi polygons to snap to
This commit is contained in:
Olivier Guyot
2020-02-11 11:03:36 +01:00
parent 3c5d0f223e
commit 6641832621
2 changed files with 24 additions and 77 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ docs: >
the part of the border comprised between these two points is added to
the currently drawn feature.
This leverages the `appendCoordinates` method of the `ol/interaction/Draw` interaction.
tags: "draw, edit, freehand, vector"
tags: "draw, trace, snap, vector, topology"
---
<div id="map" class="map"></div>
<form class="form-inline">