Navigation überspringen

[Gelöst] Toolset Google map views issues

This support ticket is created vor 1 weeks, 4 days. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 13 Antworten, hat 1 Stimme.

Zuletzt aktualisiert von Minesh vor 6 days, 20 hours.

Assistiert von: Minesh.

Author
Artikel
#2822167

poM

Hi,

I face issues on a ToolsetGoogle map views rendered by the following shortcode:

[wpv-map-render map_id='map-biens' map_width='100%' map_height='100%' style_json="/wp-content/themes/houzez-child/maps/custom.json" cluster='on' background_color='#fff' cluster_min_size='1' cluster_grid_size='1' cluster_click_zoom='off' map_type_control='off' full_screen_control='off' zoom_control='on' map-type='roadmap' street_view_control='off' scrollwheel='off' double_click_zoom='off' fitbounds='off' general_zoom='11' general_center_lat='46.25020029526707' general_center_lon='6.40011801530962'][/wpv-map-render]

The issue might be viewed here: versteckter Link

1. Cluster click zoom should be disabled but doesn't work
2. When zooming on the map, you might see new clusters which are not rendered at the default zoom level

Thanks in advance for your precious help.

#2822183

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

First of all, based on the debug information you shared I find that you are using the outdated Toolset plugins. We always recommend running your site with the latest stable release plugin version.

*** Please make a FULL BACKUP of your database and website.***

Could you please update ALL Toolset plugins to it's latest officially released version. You can download the latest plugin release from your accounts page:
=> https://toolset.com/account/downloads/

Alternatively, You can install/update Toolset pluigins by following the instructions given with the following link:
- https://toolset.com/faq/how-to-install-and-register-toolset/#automatic-installation-once-you-have-otgs-installer-plugin-installed

Regarding your query, please check the official doc:
- https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-render

Please check the attributes and its explanations:

cluster_min_size.
- Optional, defaults to 2. Minimum number of markers that can get wrapped into a cluster.

cluster_click_zoom.
Optional, defaults to on , can be on or off. This attribute sets whether clicking on a cluster should zoom it. By design, it sets the fitbounds value of the map based on the markers contained in that cluster. Sometimes, this attribute needs to be used together with the cluster_max_zoom attribute to dissolve a cluster when markers are too close.

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.

cluster_grid_size.
- Optional. Defaults to 60 (pixels). When cluster is set to on, this attribute sets the minimum distance in pixels between two markers to join them into the same cluster.

cluster.
- Optional, defaults to off . Can be on or off . When set to on, markers close enough based on some rules will be rendered as a cluster.

The default cluster_min_size is 2 and if you use 1 there is no point of making cluster if there is only 1 marker. You use cluster_grid_size='1' but its in pixel default to 60 pixels.

#2822186

poM

Hi,
I have just upgraded all Toolset plugins to their latest version.
I don't understand why cluster_click_zoom works as it it disabled.
We need clusters with only one marker, it uses to work properly. Is it a problem?
Cheers.

#2822187

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

I'm not sure where exactly the issue is.

Can you please share problem URL and admin access details and tell me what is your expected result and let me review whats going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2822191

poM

Please note that we have just launched a hosting platform migration and thus the website wiil be unavailable for a few hours.

#2822207

poM

The staging environment is now available.

#2822352

poM

Hi,
Any update on this issue?

#2822359

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

I've added the following custom JS code to your view's custom Javascript editor:
- versteckter Link

jQuery(document).ready(function() {
  
   WPViews.view_addon_maps.cluster_options['map-biens'].zoomOnClick = false;
 
 
});

Can you please confirm it works as expected.

#2822364

poM

Hi,
Thanks for your feedbak.
This solves the cluster click zoom issue.
Do you have any idea why my cluster are not rendering properly at zoom level 10 ?
Cheers.

#2822661

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Well - it depends on the cluster attributes you set and zoom level. What if you increase the zoom level and check if you see any difference as well as try to play with different attriutes like:

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.

cluster_grid_size.
- Optional. Defaults to 60 (pixels). When cluster is set to on, this attribute sets the minimum distance in pixels between two markers to join them into the same cluster.

#2822664

poM

Hi,
Thanks for your reply.
I know about these settings, that I currently use.
I have currently set cluster_min_size to 1, so each marker should be rendered as a cluster right?
This unfortunately doesn't work... but it used to!
Cheers.

#2822678

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

To make a cluster, minimum default is two markers. Making cluster using one marker is logically not correct.

Is this change you see not working after updating Toolset maps plugin? What if you try to downgradde the Toolset maps plugin and check you see it working with prevoius version. You can try to check with couple of previous version and see if you able to see it working or not.

#2822687

poM

Hi,

It is the same problem as with the cluster_click_zoom option. I have to force it in JS editor:

WPViews.view_addon_maps.cluster_options['map-biens'].minimumClusterSize = 1;

Cheers.

#2822808

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Great - Happy to help. You are welcome to mark resolve this ticket.