Android-maps-utils: Simple way to retrieve a List<T> from ClusterManager<T extends ClusterItem>

Created on 29 Jun 2014  路  6Comments  路  Source: googlemaps/android-maps-utils

For example, Is there an easy way to get a Collection or a List of MyItem in the demo? I know that it's possible to get a collection of markers fairly easily.

I want to check if the marker already exists before adding it. (I have an object id field that I assign to each MyItem).

stale

All 6 comments

I'm interested too
"I know that it's possible to get a collection of markers fairly easily." how to do this task ?

I'm interested in a collection of all _visible_ non-clustered items. Does anyone know how to request them ?

my question "I'm interested in a collection of all visible non-clustered items" is solved by add this to DefaultClusterRenderer.java

public T getMarker(Marker m) {
    return mMarkerCache.get(m);
}

maybe it helps someone

There is no way to do this yet?

IT seems that there is not a simple way yet. Too strange, you can add items, "remove" items, but cannot retrieve the coleection of items.

This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!

Closing this. Please reopen if you believe it should be addressed. Thank you for your contribution.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CodeHore picture CodeHore  路  4Comments

vardaan picture vardaan  路  6Comments

patriotaSJ picture patriotaSJ  路  7Comments

kujaomega picture kujaomega  路  4Comments

air89 picture air89  路  6Comments