Skip to content

Map.panBy and Point.convert API #8968

Description

@blq

map.panBy specifies that its first argument can be a PointLike object. Though if you pass in an {x, y} literal it fails in camera.js due to the Point.convert(offset).mult() call that assumes that the output from Point.convert is a real Point instance, which is not what Point.convert spec actually says, it will only convert Array to Point, other objects (literals) unchanged.

/Fredrik Blomqvist

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions