Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spiderfy the cluster only on max zoom #1098

Open
Panic7 opened this issue Jan 23, 2024 · 0 comments
Open

Spiderfy the cluster only on max zoom #1098

Panic7 opened this issue Jan 23, 2024 · 0 comments

Comments

@Panic7
Copy link

Panic7 commented Jan 23, 2024

if (bottomCluster._zoom === this._maxZoom &&
bottomCluster._childCount === cluster._childCount &&
this.options.spiderfyOnMaxZoom) {
// All child markers are contained in a single cluster from this._maxZoom to this cluster.
cluster.spiderfy();
} else if (this.options.zoomToBoundsOnClick) {

I don't want to search for hacky ways to bypass this, in case I need to spiderfy the cluster only at the maximum zoom level. It would be nice to have a parameter for the cluster groups, like 'spyderfyOnMaxZoomOnly' or something

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

No branches or pull requests

1 participant