visgl / react-map-gl

React friendly API wrapper around MapboxGL JS
http://visgl.github.io/react-map-gl/
Other
7.85k stars 1.36k forks source link

[Bug] Marker not anchored to map correctly #2324

Closed daanaerts closed 11 months ago

daanaerts commented 11 months ago

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

Logs

No response

Pessimistress commented 11 months ago

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

vhermecz commented 3 months ago

This has to do nothing with the anchor, the problem is that maplibre-gl.css is not being imported.