Skip to content

clusterCountLayer transition lags behind clusterLayer on cluster click #987

@maggievcody

Description

@maggievcody

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions