Skip Navigation

[Resolved] I added cluster on in views – nothing happened

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 1 year, 5 months ago.

Assisted by: Waqar.

Author
Posts
#2623989

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

#2624513

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

#2625609

All good now. I used the blocks in WordPress to add cluster.
Thanks
Tim

#2625611

All good now. I used the blocks in WordPress to add cluster.
Thanks
Tim