geoman-io/leaflet-geoman

Area Preservation when dragging polygons.

Open

#547 建立於 2020年2月19日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)JavaScript (1,933 star) (404 fork)batch import
bughelp wanted

描述

When dragging polygons to different latitudes, area is not being preserved. Specifically, when a polygon is created in towards the poles and brought towards the equator, its width is not adjusting appropriately. Height is adjusting though.

Steps to reproduce the issue: Can be done on main site https://geoman.io/leaflet-geoman

  1. Create a circle over a northern country (like the uk)
  2. Create a polygon over the same circle.
  3. Drag the circle to the equator.
  4. Drag the polygon to the same location at the equator.

In theory they should both remain the same size. However they distort in different ways.

Circle and polygon created in north with same shape. image Circle and polygon with different shapes after being dragged to the equator. image

貢獻者指南