geoman-io/leaflet-geoman

Area Preservation when dragging polygons.

Aperta

#547 aperta il 19 feb 2020

 (4 commenti) (0 reazioni) (0 assegnatari)JavaScript (404 fork)batch import
bughelp wanted

Metriche repository

Star
 (1933 stelle)
Metriche merge PR
 (Merge medio 9g 6h) (5 PR mergiate in 30 g)

Descrizione

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

Guida contributor