clustering markers on android maps v2 [duplicate]
Asked Answered
A

1

5

Recently I worked on an android project in which I managed to add markers to a MapView and cluster those markers if they were too close to each other. Now I have to do the same using the new MapFragment - Google Maps Android API v2.

The markers now are succesfully added to the map, but I can't manage to make the clustering part and I can't find any usuable description about this topic. Do you know a way to implement this using the new API?

Any help would be much appreciated.

Allantoid answered 25/2, 2013 at 8:35 Comment(2)
You may also want to have a look at Android Maps Extensions.Spill
Yeah, thanks for the comment, I've already found this link, but unfortunately only after implementing my own solution. Anyway, I'll try this one as well, maybe its performance is better when working with 500+ markers, it's pretty slow on my Samsung Galaxy S :(Allantoid
I
12

For anyone still in need of a clustering solution, also take a look at Clusterkraf. It's an Apache v2 licensed open source clustering library for the Google Maps Android API v2. It clusters points based on pixel proximity, animates transitions between clusters when zooming, handles thousands of markers, and supports Android v2.2 and higher.

Imperator answered 29/4, 2013 at 19:48 Comment(4)
This answer should be a comment. It is really nothing more than a link.Electrothermics
Nice library! The sample project is here: play.google.com/store/apps/….. Works well on the Hero so it's gotta be solid.Thorn
@Thorn Link not working.Contredanse
Looks like they took the sample downThorn

© 2022 - 2024 — McMap. All rights reserved.