Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clusters not rendering/updating during flyTo or other map animations / dragging #62

Open
MarkLyck opened this issue Feb 3, 2022 · 0 comments

Comments

@MarkLyck
Copy link

MarkLyck commented Feb 3, 2022

Describe the bug
Clusters do not render, split or update during map animations or while dragging the map from an area with no clusters to an area with clusters.

To Reproduce
Steps to reproduce the behavior:

  1. Add a bunch of data points to render clusters, subclusters and markers
  2. set viewportChangeMethod="flyTo"
  3. drag the map from an area with no clusters to an area with clusters.
  4. See that the new clusters don't appear until you let go of the mouse.

Expected behavior
I would expect clusters to update and render during each tick of an animation whether it is dragging the map to an area where a cluster should be rendered, or zooming into a cluster where it should "split" into multiple clusters or markers during the zoom animation.

Screenshots
Before letting go of the mouse when dragging over an area that has clusters

Screen Shot 2022-02-02 at 22 29 00

after letting go of the mouse:

Screen Shot 2022-02-02 at 22 29 02

Additional context
I am attempting to migrate from https://github.com/alex3165/react-mapbox-gl to react-map-gl

The cluster feature of react-mapbox-gl is able to render and split the clusters in real-time during map animations. Not sure if it's worth looking at how they render the clusters?

This is a dealbreaker to finish migrating over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant