leaflet-editable-scaled-rect

Enforce a ratio on rectangles for Leaflet Editable

Usage no npm install needed!

<script type="module">
  import leafletEditableScaledRect from 'https://cdn.skypack.dev/leaflet-editable-scaled-rect';
</script>

README

Leaflet-Editable-Scaled-Rect

This plugin adds support a scaled rectangle editor for Leaflet Editable. This way you can enforce ratios on rectangle to only draw squares, portrait or landscape letters.

Demo

See the following examples for demonstration:

Install

$ npm install leaflet-editable-scaled-rect

Quickstart

See example