ManuParra
ManuParra

Reputation: 1531

Google maps API, Can MarkerClusterer show info about items inside the cluster?

I would like show info about the MarkerClustered, but I want show what there are inside the MarkerCluster, for example:

A cluster contains 5 location item, well, I want that if I put my mouse over the custer or clicking, I can show something like: This cluster contains to A, B, C, D, E.

Thanks in advance.

Upvotes: 1

Views: 328

Answers (1)

Dr.Molle
Dr.Molle

Reputation: 117334

There is a clusterclick-event for a MarkerClusterer, the argument passed to the callback will be the clicked cluster, use the method getMarkers() of the cluster to get details about the clustered markers.

Mouseover is not implemented, you must modify the addMarker-method of the ClusterIcon-prototype to implement this event.

Upvotes: 1

Related Questions