Skip to content

Conversation

@hz61p1
Copy link

@hz61p1 hz61p1 commented Oct 8, 2025

The error is caused by the fact that every time a marker is added or removed, the cluster render is triggered, which negatively impacts performance and may even freeze the browser tab.

This adds debounce for rendering markers in the cluster, which fixes performance issues. It may close issue #305. I'm not sure what the timeout for debounce should be, but with the current value, I haven't noticed any issues. Just in case, I added a prop for configuration.

@hz61p1 hz61p1 force-pushed the optimization-of-cluster-markers branch from 3e68f37 to f0b6989 Compare October 9, 2025 00:19
@HusamElbashir HusamElbashir self-requested a review October 9, 2025 05:29
@HusamElbashir
Copy link
Collaborator

Thanks for the PR @hz61p1 !

@HusamElbashir HusamElbashir linked an issue Oct 22, 2025 that may be closed by this pull request
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.

MarkerCluster not optimized?

2 participants