Skip to content

Globe panning is reverted when North pole facing the user #5296

@jcolot

Description

@jcolot

See video: moving the mouse on the left of the globe and to the bottom rotates the globe clockwise, unexpectedly:

Screen.Recording.2025-01-06.at.20.38.18.mov

A way to solve it would rely on something like versor (https://github.com/d3/versor), tracking the rotation with quaternions.

maplibre-gl-js version 5.0.0:

Expected Behavior

Homogenous panning all over the globe, non-blocking at the poles (for instance: https://observablehq.com/@jcolot/versor-panning)

Actual Behavior

Unexpected behaviours related to the poles

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR is more than welcomedExtra attention is neededbugSomething isn't workingglobeGlobe related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions