Distance-based Clustering example for Google Maps


I want to cluster my markers on Google Maps depending on the area they appear. Actually I want to select the area with the greatest number of markers and color it.

I tried to use distance based clustering for Google Maps but I can’t find any example, and I don’t know whether I can use it.

Can anybody help me please?


Hi nat06,

Thanks for your post.

As for your problem, it seems that no current public library for doing distance-based clustering exists. For more information, you could refer to
“Distance-based Clustering” in the following link.

Hope it will be helpful to you.

Best Regards,

Fei Han

Thanks Fei, but I have seen this site. The problem is that there aren’t examples for implementation there. Actually I got familiar with Distance-based Clustering from that page, but it’s not of any help.

I also tried with this page


but the clusters do not appear. Only the markers

Hi nat06,

Your problem is related to Google Maps, I recommend to post this problem in Google Maps Help Forum for professional help.

Best Regards,

Fei Han

Leave a Reply