Google maps integration - crustering flickers when dragging
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- data-visualization
Research direction
Start with FlowmapSelectors._getClusterZoom() in packages/data/src/FlowmapSelectors.ts and reproduce the flicker using the linked StackBlitz with @deck.gl/google-maps while dragging. Check how mapZoom affects clusterZoom, then verify that clustering remains stable during Google Maps dragging without changing the existing MapLibre behavior.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- TypeScript
- Stars
- 141
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from visgl/flowmap.gl
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
visgl/flowmap.gl#109 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
visgl/flowmap.gl#60 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
visgl/flowmap.gl#59 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
visgl/flowmap.gl#58 ·
-
deck.gl v9 support Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
visgl/flowmap.gl#44 · 7 comments · 5 reactions ·
All issues in visgl/flowmap.gl
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100