react-mapbox-gl
react-mapbox-gl copied to clipboard
clusterCountLayer transition lags behind clusterLayer on cluster click
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.
Repro Steps
- Click on cluster
- See text in
clusterCountLayerlag behindclusterLayertransition
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
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)
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.
Oh bummer. Well, thank you for replying! Have a nice day