Skip to content

Fix cluster + center + zoom showing empty map#873

Merged
JeroenDeDauw merged 2 commits intomasterfrom
fix/cluster-center-zoom-empty-map
Apr 5, 2026
Merged

Fix cluster + center + zoom showing empty map#873
JeroenDeDauw merged 2 commits intomasterfrom
fix/cluster-center-zoom-empty-map

Conversation

@JeroenDeDauw
Copy link
Copy Markdown
Member

Fixes #688

When all three options are set, the map appears empty until user interacts.
fitContent() runs before clusters finalize bounds, causing misplacement.
When both center and zoom are explicitly set, skip fitContent() entirely
and use the provided values directly.

@JeroenDeDauw JeroenDeDauw force-pushed the fix/cluster-center-zoom-empty-map branch 2 times, most recently from 428561f to abdfb4d Compare April 5, 2026 20:06
@JeroenDeDauw JeroenDeDauw marked this pull request as ready for review April 5, 2026 20:30
@JeroenDeDauw JeroenDeDauw force-pushed the fix/cluster-center-zoom-empty-map branch from abdfb4d to 81f1d6f Compare April 5, 2026 20:31
JeroenDeDauw and others added 2 commits April 5, 2026 22:48
Fixes #688

When all three options are set, the map appears empty until user interacts.
`fitContent()` runs before clusters finalize bounds, causing misplacement.
When both center and zoom are explicitly set, skip `fitContent()` entirely
and use the provided values directly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Verifies that fitContent is skipped when both centre and zoom are
explicitly set, preventing cluster bounds interference.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JeroenDeDauw JeroenDeDauw force-pushed the fix/cluster-center-zoom-empty-map branch from 81f1d6f to 6831f5e Compare April 5, 2026 20:48
@JeroenDeDauw JeroenDeDauw merged commit 1c4e494 into master Apr 5, 2026
6 checks passed
@JeroenDeDauw JeroenDeDauw deleted the fix/cluster-center-zoom-empty-map branch April 5, 2026 20:50
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

Successfully merging this pull request may close these issues.

Annoying bug with cluster + center + zoom

1 participant