Skip to content

fix: keep marker clustering local to its world - #870

Open
rayw-lab wants to merge 1 commit into
ThatOpen:mainfrom
rayw-lab:codex/keep-marker-clusters-world-local
Open

rayw-lab wants to merge 1 commit into
ThatOpen:mainfrom
rayw-lab:codex/keep-marker-clusters-world-local

Conversation

@rayw-lab

Copy link
Copy Markdown

Description

Fixes #859.

Clustering a world now resets only that world's marker state and cluster labels. Deleting a clustered marker refreshes the affected world so the count updates right away, including when its last marker is removed.

Additional context

I ran yarn build-libraries and tested the built packages in Chrome with two Three.js scenes rendered through CSS2D. Both worlds kept their own cluster when either was refreshed. Removing the two markers in the first world restored the remaining individual label and then cleared the overlay, while the second world's cluster stayed visible.

What is the purpose of this pull request?

  • Bug fix

This branch has not been deployed

No deployments
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.

Marker: delete() leaves the cluster label of the deleted markers on screen, and cluster(world) clears the other worlds' clusters

1 participant