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

Zoom after cluster click #22

Open
Marvin99 opened this issue May 15, 2018 · 2 comments
Open

Zoom after cluster click #22

Marvin99 opened this issue May 15, 2018 · 2 comments

Comments

@Marvin99
Copy link

Hi.
I do not understand how to make clustering after click on Cluster?
In google library we go that:

@Override public boolean onClusterClick(final Cluster<MyItem> cluster) { map.animateCamera(CameraUpdateFactory.newLatLngZoom( cluster.getPosition(), (float) Math.floor(map .getCameraPosition().zoom + 1)), 300, null); return true;

In this library we do not have getPosition() so how we can do it?
Sorry, if this is very stupid question I am a beginner in android.

@basitsaleemmb
Copy link

basitsaleemmb commented May 15, 2018

bro. do u know how to add custom markers icon based on tag in this library

@petermolcany
Copy link

You can do following to move camera on cluster click:
map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(cluster.getLatitude(), cluster.getLongitude()), (float) Math.floor(map .getCameraPosition().zoom + 1)), null);

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

3 participants