JSFiddle - React, Tailwind, and code Playground

by Gwyn Milcote

HTML

<h1>polygon plotter</h1>

<p>based on <a href=''>Leaflet.js</a>, this is a simple tool for drawing polygons. i used it to make <b>WhiteMapper</b> SVG tool for recording markings on horses, because I didn't like the SVG-drawing apps out there. not sure what else you could do with this.</p>

<p>You can upload a background image to trace. Change the scale, zoom in/out. Click to add a point, keep clicking to draw lines, click 'Connect' to finish a polygon. import/export JSON code.</p>

<br>
From URL: <input type='text' id='upload-bg-url'>
<br>
From device: <input type='file' id='upload-bg-file'>
<br>
<button id='upload-bg-btn'>Upload</button>

<div id='plot-container'></div>