Skip to content

Add option to zoom to map center instead of pointer position/focal point #2001

@JaffaKetchup

Description

@JaffaKetchup

What do you want implemented?

At the moment, zooming with a cursor zooms into the cursor location, which is what most use cases would require. However, some applications may prefer to have the map zoom into the center, regardless of the cursor location.

This has been requested twice in the Discord server: https://discord.com/channels/951867686378409984/1317675189701705778/1317675189701705778, https://discord.com/channels/951867686378409984/1166739850137980958/1166739850137980958

This should work for trackpad as well, as requested in #1905.

What other alternatives are available?

The second link's workaround was to play an animation immediately after the gesture has stopped to move the map back to the desired center, and move the desired marker/widget around to stay in the correct geographic position instead of screen center.

It may also be possible to use constraints to prevent moving during zoom?

Can you provide any other information?

No response

Severity

Annoying: Currently have to use workarounds

Metadata

Metadata

Assignees

No one assigned

    Labels

    P: 3 (low)(Default priority for feature requests)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions