Skip to content

Zooming when adding region breaks #4

@daqst

Description

@daqst

Version:

 @ryersonlibrary/web-components@0.4.2

I'm submitting a:

[X] bug report
[ ] feature request

Current behavior:
In the MapEditor demo, when adding a region, zooming in or out on the map skews the location of the next point relative to the cursor.

Expected behavior:
The point should follow the cursor as the map zooms.

Steps to reproduce:

  • Run npm start.
  • Load the MapEditor component demo.
  • Add a new Region.
  • Click to add one or more points, then scroll the mouse wheel to zoom.
  • The polygon point that should follow the cursor is now offset.

Other information:
Probably something to do with scaling not being properly carried over to the last point of the polygon during zooming.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions