geoman-io/leaflet-geoman

Area Preservation when dragging polygons.

Open

#547 opened on 2020年2月19日

GitHub で見る
 (4 comments) (0 reactions) (0 assignees)JavaScript (1,933 stars) (404 forks)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

コントリビューターガイド