Tell us what you are trying to do?
Trying to get my map markers to cluster
Is there any documentation that you are following?
https://toolset.com/documentation/programmer-reference/maps/customizing-cluster-markers-with-javascript-functions/
Is there a similar example that we can see?
What is the link to your site? hidden link
I am trying to get the map markers to cluster. I would be happy with default so I just added
[wpv-map-render map_id="map-1" cluster="on"] in the box marked Loop Editor in View Editor - all-therapists
I am expecting the markers to cluster as there are plenty of them grouped. Nothing happens.
I also wanted to allow markers that are stacked with exactly the same address to be visible somehow. Is there a solution for this?
Thanks
Tim
Hi Tim,
Thank you for contacting us and I'd be happy to assist.
You can update your 'wpv-map-render' shortcode to include the following attributes:
https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-render
[wpv-map-render map_id="map-1" cluster="on" spiderfy="on" cluster_grid_size="90"][/wpv-map-render]
The 'spiderfy' attribute will make sure that each overlapping map marker is shown independently.
The 'cluster_grid_size' attribute determines how close map markers on the map are considered for clustering. The default value is '60', but you can increase or decrease it as needed.
I hope this helps and please let me know if you need further assistance.
regards,
Waqar
All good now. I used the blocks in WordPress to add cluster.
Thanks
Tim
All good now. I used the blocks in WordPress to add cluster.
Thanks
Tim