I want my Marker Clusterer; not to cluster markers less than 4 or something. It is clustering all the markers even for 2 markers.
Is there any possible way to set it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The option you want is not available with MarkerClusterer, but it is an option if you use an an enhancement named: MarkerClustererPlus. It is essentially a Google Maps v3 upgrade of the original v2 MarkerClusterer, which was then further enhanced and extended by Gary Little. It functions pretty much the same as the original MarkerClusterer, but offers more options.
Specific to your question, you may pass a set of options to the MarkerClusterer constructor function (when using MarkerClustererPlus) and include an option: minimumClusterSize. That will give you what you want.