O
O
OM12016-07-17 12:36:59
Android
OM1, 2016-07-17 12:36:59

Android google maps: simple cluster example with images?

Hello!
I am using the standard google maps api android library and android-maps-utils.
Learned to add markers with images by:

Marker mapMarker = mMap.addMarker(new MarkerOptions()
                        .position(MELBOURNE)
                        .title(obj.getString("text"))
                        .snippet("text")
                        .icon(BitmapDescriptorFactory.fromBitmap(bmIcon)));

Then I learned how to work with clusters in the standard way:
ClusterManager<MyItem> mClusterManager;
There's a snag in the MyItem object : it only has position and text.
But things didn’t work out with the DefaultClusterRenderer method , it was painfully screwed up with classes, objects and markup.
Is there an option to use addMarker with mClusterManager with the ability to attach images?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OM1, 2016-07-17
@OM1

It seems like this:
https://github.com/pengrad/android-maps-async-markers
exactly this approach meant

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question