Skip to content

Popup detaches from marker during animation when map repeats horizontally #5655

Open
@sankichi92

Description

@sankichi92

maplibre-gl-js version: 5.2.0

browser: Chrome, Safari

Steps to Trigger Behavior

  1. Add a marker to the map and attach a popup to it.
  2. Animate the marker continuously across the map.
  3. Zoom out until the map horizontally repeats (world copy is visible).

Link to Demonstration

https://jsbin.com/totafit/1/edit?html,output

Expected Behavior

The popup moves synchronously with the marker.

Actual Behavior

The popup is displayed separated from the marker by 360 degrees of longitude.

Image

Related Issues


This behavior particularly impacts applications that animate markers for globally-moving objects (e.g., satellites, aircraft), such as react-sat-map, resulting in confusing and incorrect visual representation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions