Skip to content

Google maps integration - crustering flickers when dragging #67

Description

@vdelplanque

Hi there,

I'm trying to integrate Flowmap with @deck.gl/google-maps Layer, it works well but with clustering auto the flows "flickers" when we drag the map.

I created a stackblitz to reproduce the issue.

I digged into the code and I found that in FlowmapSelectors._getClusterZoom() in MapLibre the mapZoom is always the same (3, 4, etc) but with Google Maps there is a rounding issue and the value can be 4, 4.000000000000003, 3.999999999999998, etc so the clusterZoom differs which causes this effect.

Rounding mapZoom to 5 decimals fixes this problem but I may not be aware of side effects which is why I don't send a PR, but it shouldn't be much more than this.

You could add this Google Maps feature as an example in your docs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions