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] Make TerraDrawCircleMode draw web mercator circles by default #275

Closed JamesLMilner closed 2 months ago

JamesLMilner commented 2 months ago

Is your feature request related to a problem? Please describe. By default TerraDrawCircleMode creates a geodesic circle. To match the consistency of other modes, we should default to web mercator and offer the projection property (which can be set to globe) to allow people to draw geodesic circles.

Describe your proposed idea for the solution to this problem Use the projection property to allow drawing web mercator or geodesic circles respectively

Describe alternatives you've considered Other designs would not be consistent with the direction of Terra Draw

Additional context

By default circles are now geodesic as shown in this screenshot:

Screenshot 2024-07-06 at 14 39 23
JamesLMilner commented 2 months ago

This is now the default as of 0.0.1-alpha.68. For geodesic circles, please use projection: "globe". Thanks 👍🏻