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

Add clusterEnabled to Options #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thomasdao
Copy link

Hello,

Thank you for this awesome library.

When I use it in my app, some of the points are very near to each other, so when user clicks on the cluster, the cluster does not expand to individual pins.

So I add an option to disable clustering. In my app, whenever zoom exceed some certain level, I just disable clustering so user can access individual pins.

    @Override
    public void onClusteringStarted() {
        if (map == null) {
            return;
        }
        if (map.getCameraPosition().zoom >= 15) {
            options.setClusterEnabled(false);
        } else {
            options.setClusterEnabled(true);
        }
    }

@JWvanV
Copy link

JWvanV commented Jul 2, 2014

Why hasn't this been merged yet?

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.

2 participants