Skip Navigation

[Resolved] Clusters not breaking apart despite cluster max zoom setting

This support ticket is created 6 years, 12 months ago. There's a good chance that you are reading advice that it now obsolete.

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/Hong_Kong (GMT+08:00)

This topic contains 7 replies, has 2 voices.

Last updated by Luo Yang 6 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#594139

My points are clustered on the map, but stay clustered even when zoomed in beyond the cluster max zoom setting. Here's what I have in my map view loop:

[wpv-layout-start]
	[wpv-items-found]
[wpv-map-render map_id="map-3" cluster="on" map_height="50vh"]
	<!-- wpv-loop-start -->
	<ul class="wpv-loop js-wpv-loop">
		<wpv-loop>
          [wpv-map-marker map_id="map-3" cluster="on" cluster_max_zoom="18" marker_id="marker-[wpv-post-id]" marker_field="wpcf-location"]
          <h4>[wpv-post-link]</h4>
          <p>[wpv-post-taxonomy type="types"]</p>
          <p>[types field='location'][/types][/wpv-map-marker]</p>
		</wpv-loop>
	</ul>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]

And here's a link to the page:
hidden link

#594244

Dear allison,

There isn't such a built-in feature within Toolset Maps plugin, if you agree, we can take it as a feature request, our developers will evaluate it.

#594896

So, can you just confirm– If I'm using clusters, there is no way to break apart clusters of data that have the same location?

#594924

When inserting a map with clusters, there is a setting to set the max zoom level for clusters. Beyond that level, markers are displayed individually.

The google maps show only one marker if there is many markers have the same location (lon and lat), only one marker will be visible, the others will be overlapped.

There isn't any existed workaround within current version of Toolset Maps plugin, and it is already Toolset Maps plugin version 1.4, our developers are working on it, you can subscribe to our blog to get the updated news:
https://toolset.com/blog/

#596069

I have the cluster max zoom setting enabled but it is still showing up as a cluster at the max zoom, rather than a single google map point. Can you clarify the settings I pated above should work on hidden link?

#596117
marker.JPG

I tried it in your website, it does show the marker icon after click the cluster "3" two times, see screenshot: marker.JPG
Can you confirm it?

The setting should be the attribute "cluster_max_zoom" of shortcode [wpv-map-render], see our document:
https://toolset.com/documentation/user-guides/maps-shortcodes/#wpv-map-render
cluster_max_zoom. Optional, defaults to empty. When cluster is set to on , this attribute sets the minimum zoom level that dissolves clusters into individual markers again.

#596329

That marker that you took a screen shot of is actually just the location marker built into Google Maps (like a business listing), not my data.
I have cluster_max_zoom set to 15, but I still see clusters when I've zoomed all the way in. I also set the cluster_min_size to 2 and cleared all my caches, server-side and locally, and still see clusters of 2! What's up with this? Can you check my code, pasted below below, to make sure I'm implementing these things right?

[wpv-layout-start]
	[wpv-items-found]
[wpv-map-render map_id="map-3" cluster="on" map_height="50vh"]
	<!-- wpv-loop-start -->
	<ul class="wpv-loop js-wpv-loop">
		<wpv-loop>
          [wpv-map-marker map_id="map-3" cluster="on" cluster_max_zoom="15" cluster_min_size="3" marker_id="marker-[wpv-post-id]" marker_field="wpcf-location"]
          <h4>[wpv-post-link]</h4> 
          <p>[wpv-post-taxonomy type="types"]</p>
          <p>[types field='location'][/types][/wpv-map-marker]</p>
		</wpv-loop>
	</ul>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]

Here's another idea - Is there a way to make a cluster clickable at a certain zoom level so it opens a info box that lists all the data points included in that cluster?

#596553

You are using shortcode:
[wpv-map-render map_id="map-3" cluster="on" map_height="50vh"]

there isn't attribute "cluster_max_zoom"
you can try to replace it with this and test again:
[wpv-map-render map_id="map-3" cluster="on" map_height="50vh" cluster_max_zoom="15"]