geoman-io/leaflet-geoman

Area Preservation when dragging polygons.

开放

#547 创建于 2020年2月19日

 (4 条评论) (0 个反应) (0 位负责人)JavaScript (404 个派生)batch import
bughelp wanted

仓库指标

星标
 (1,933 个星标)
PR 合并指标
 (平均合并 9天 6小时) (30 天内合并 5 个 PR)

描述

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

贡献者指南