mapbox / mapbox-gl-js

Interactive, thoroughly customizable maps in the browser, powered by vector tiles and WebGL
https://docs.mapbox.com/mapbox-gl-js/
Other
11.26k stars 2.23k forks source link

Popup has delay (lags) compared to marker on mapMove and animations #12998

Open mateusz-kawka opened 12 months ago

mateusz-kawka commented 12 months ago

mapbox-gl-js version: currently 3.0.0 But I've had this problem for over a year, before I had 2.15.0 browser: i test it on latest chrome, firefox & safari ( desktop & mobile )

Link to Demonstration

Here is my example https://github.com/mapbox/mapbox-gl-js/assets/76514277/57b5625b-c666-4c3e-b3c9-cbc55f186cff but same problem is on docs example https://docs.mapbox.com/mapbox-gl-js/example/popup/ ( on my video im using mapbox-gl-animated-popup but i test default popup too and no difference) Probably related to https://github.com/mapbox/mapbox-gl-js/issues/4670 I tried to keep only 1 layer, 1 marker and remove any elements from popup except 'paragraph' and map works smooth and fast but popup still has lag

Expected Behavior

no popup lags on animations like flyTo and map move

Actual Behavior

lags

Greetings!

mourner commented 12 months ago

Hmm, yeah, weird — I can confirm that popup is lagging compared to marker, even though internally their position is updated with the same mechanism. Will investigate.

mateusz-kawka commented 4 months ago

Currently 3.4.0 but unfortunately see no differences ;/