istarkov / google-map-clustering-example

clustering example for google-map-react
http://istarkov.github.io/google-map-clustering-example/
200 stars 76 forks source link

Is google auto Calculating cluster support ? #13

Open wahengchang opened 6 years ago

wahengchang commented 6 years ago

Hi istarkov

It is such a valuable example of google map cluster functionality, specially for server-side rendering usage.

I have dig into the code of this example, and realized that number of cluster of markers is calculated by yourself but not using the cluster API provided by Google. Can you share some detail about this?

wahengchang commented 6 years ago

@mezbahalam , it was so long time ago, i think i solved it. but I forgot what exactly I did.

check it out. https://github.com/cinapp/website/blob/map_peter/src/components/shared/GoogleMap/index.js