Simplify example

This commit is contained in:
Marc Jansen
2018-03-29 08:34:29 +02:00
parent d42de41af3
commit 1f0e9abfdd
2 changed files with 15 additions and 39 deletions

View File

@@ -3,7 +3,7 @@ layout: example.html
title: Smoothing lines using Chaikins algorithm
shortdesc: This uses Chaikins algorithm to smooth drawn lines.
docs: >
This example uses the npm package [`chaikin-smooth`](https://www.npmjs.com/package/chaikin-smooth) which
This example uses the npm package [`chaikin-smooth`](https://www.npmjs.com/package/chaikin-smooth) which
implements [Chaikins algorithm](http://graphics.cs.ucdavis.edu/education/CAGDNotes/Chaikins-Algorithm/Chaikins-Algorithm.html)
to smooth drawn lines.
@@ -13,12 +13,6 @@ tags: "smooth, smoothing, chaikin"
---
<div id="map" class="map"></div>
<form class="form-inline">
<label for="type">Geometry type &nbsp;</label>
<select id="type">
<option value="LineString">LineString</option>
<!-- Right now the package only supports lines, not closed rings -->
<!-- <option value="Polygon">Polygon</option> -->
</select><br>
<label for="shall-smoothen">Smooth drawn geometry?</label>
<input id="shall-smoothen" type="checkbox" checked><br>
<label for="iterations">Number of smoothings</label>