JamesLMilner / terra-draw

A library for drawing on maps that supports Mapbox, MapLibre, Google Maps, OpenLayers and Leaflet out the box
https://terradraw.io
MIT License
447 stars 50 forks source link

[Feature Request] 3 Click Rectangle Creation #286

Closed ingalls closed 3 weeks ago

ingalls commented 1 month ago

Context

The current rectangle mode only allows creating rectangles that are aligned along the cardinal axis.

It would be awesome to either change the rectangle mode to allow 3 click rectangle creation to allow for rectangles on any axis or implement this in another mode.

An example of the behavior is given in the screenshot below courtesy of the JOSM Building Plugin.

Screencast from 2024-07-26 14-37-27.webm

cc/ @JamesLMilner

JamesLMilner commented 3 weeks ago

This is now available in 1.0.0-beta.1 🎉