Skip to content

Spiderfy the cluster only on max zoom #1098

@Panic7

Description

@Panic7

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions