react-mapbox-gl icon indicating copy to clipboard operation
react-mapbox-gl copied to clipboard

clusterCountLayer transition lags behind clusterLayer on cluster click

Open maggievcody opened this issue 3 years ago • 5 comments

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

  • Click on cluster
  • See text in clusterCountLayer lag behind clusterLayer transition

Environment

  • Library Version: react-map-gl 6.1.14
  • React Version: 17.0.2
  • Browser Version: Chrome 96.0.4664.93
  • OS: Mac OS 11.2.3 Big Sur

maggievcody avatar Dec 22 '21 19:12 maggievcody

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)

ezetaraborelli avatar Feb 21 '24 14:02 ezetaraborelli

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.

maggievcody avatar Feb 21 '24 15:02 maggievcody

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

ezetaraborelli avatar Feb 21 '24 16:02 ezetaraborelli