alex3165 / react-mapbox-gl

A React binding of mapbox-gl-js
http://alex3165.github.io/react-mapbox-gl/
MIT License
1.93k stars 536 forks source link

clusterCountLayer transition lags behind clusterLayer on cluster click #987

Open maggievcody opened 2 years ago

maggievcody commented 2 years ago

Description

When a cluster is clicked, the clusterCountLayer seems to lag behind the clusterLayer a little, resulting in the text transition being delayed. I notice this occurs in the cluster demo as well.

Adjusting the viewport transitionDuration doesn't seem to help – I think something may be off about the individual layer transition durations or order in which they occur in. It would be nice if these layers transitioned simultaneously so the cluster count is not delayed.

Screen Shot 2021-12-22 at 12 43 31 PM Screen Shot 2021-12-22 at 12 44 26 PM Screen Shot 2021-12-22 at 12 43 58 PM 1

Repro Steps

Environment

ezetaraborelli commented 9 months ago

Hi @maggievcody! I know it's been more than two years from the day you posted this, but I'm having the same issue, and I am wondering if you found a solution for this? (and if you remember it)

maggievcody commented 9 months ago

Hi @maggievcody! I know it's been more than two years from the day you posted this, but I'm having the same issue, and I am wondering if you found a solution for this? (and if you remember it)

Sorry, I don't work with this tool anymore and don't recall finding a solution for this.

ezetaraborelli commented 9 months ago

Oh bummer. Well, thank you for replying! Have a nice day

m345054 commented 3 months ago

Hi @ezetaraborelli have you found a solution in the meantime?

taraborellieze commented 3 months ago

Hi @m345054, I'm sorry, but I have not. I needed this for an interview test, which I failed (it wasn't this issue's fault), so I didn't have the time to try to fix it myself