Skip to content

Map.flyTo animation stops when calling Map.setPadding #6765

@helbling

Description

@helbling

maplibre-gl-js version 5.13.0
Firefox

Steps to Trigger Behavior

  1. call map.flyTo({center:[7, 47]});
  2. during animation call map.setPadding({top: 10, bottom: 10, left: 10, right: 10})

Link to Demonstration

https://jsbin.com/wimuwafafa/edit?html,output

Expected Behavior

I would expect the animation to finish and the map to be centered at [7,47] in the end.
Padding could be applied immediately or after the animation.

Actual Behavior

The animation abruptly stops. Center of the map depends on timing of the setPadding call.

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