Home › Forums › Front-end Issues › Marker clustering doesn't work › Reply To: Marker clustering doesn't work
Hi @mastafu
I think that’s because you’ve set the function, but never execute it. Could you please try it like this:
// add markers
$markers.each(function(){
add_marker( $(this), map );
});
// center map
center_map( map );
// add marker cluster
markerCluster( map.markers, map )
// return
return map;
Because this issue is more related to Google Map, kindly get in touch with Google Maps community for further support.
Thanks 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.