visgl/react-map-gl

[Bug] Marker not anchored to map correctly

Closed this issue · 1 comments

Description

Markers aren't anchoring to coordinated correctly and jump around when zooming.

ezgif-1-a21136d17c

Expected Behavior

A market to be at the right location even when zooming.

Steps to Reproduce

https://codesandbox.io/p/sandbox/react-map-issue-fmxwhh

Environment

  • "react": "18.2.0",
  • "react-map-gl": "7.1.6",
  • "mapbox-gl": "3.0.0"

Logs

No response

You cannot set a custom anchor if you are using the default marker. It is implemented by mapbox-gl, not this library.