geoman-io/leaflet-geoman

Area Preservation when dragging polygons.

Open

#547 opened on Feb 19, 2020

View on GitHub
 (4 comments) (0 reactions) (0 assignees)JavaScript (1,933 stars) (404 forks)batch import
bughelp wanted

Description

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

Contributor guide

Area Preservation when dragging polygons. · geoman-io/leaflet-geoman#547 | Good First Issue