terra-draw icon indicating copy to clipboard operation
terra-draw copied to clipboard

[Bug] Geodesic circles can be drawn but not moved or resized

Open neodescis opened this issue 10 months ago • 2 comments
trafficstars

Describe the bug TerraDrawCircleMode can be configured to create geodesic circles (projection: globe). However, once the circle is created, it cannot be moved or resized via TerraDrawSelectMode such that it stays geodesic. The documentation alludes to this, but this seems like something that needs to be fixed for geodesic circles to be useful.

Terra Draw npm version 1.0.0

To Reproduce Steps to reproduce the behavior:

  1. Enter TerraDrawCircleMode with projection: globe
  2. Draw a geodesic circle close to the north pole
  3. Enter TerraDrawSelectMode with projection: globe
  4. Attempt to resize the circle
  5. See console errors about resize not being supported
  6. Move the circle close to the equator
  7. The circle gets "squished" into a shape that cannot be drawn with the circle tool. So, either it was drawn with an incorrect projection originally, or it is getting translated incorrectly as it is dragged. I suspect the latter, but I have not confirmed this.

Expected behavior The circle should be continuously re-shaped to the correct projection as it is moved or resized.

neodescis avatar Jan 22 '25 05:01 neodescis