Skip Navigation

[Resolved] Map Clustering – Clicking on the Cluster icon to zoom loses all map icons

This support ticket is created 3 years, 3 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
- 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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 9 replies, has 3 voices.

Last updated by Adrian Robbins 3 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#2151167

We have a problem with the Map Icon clustering functionality.

When you first view the map, all the icons are correctly clustered, however if you then click on a Cluster Icon to 'zoom' into that specific location to view the individual icons, they have all vanished!

You can see this happening at hidden link

Interestingly, when we go into edit the map block on a page, the map first displays, however if we click on it to make it the 'active' block so we can then edit the settings, we get this error message - 'This block has encountered an error and cannot be previewed'

1) How can we resolve the clustering zoom problem?

2) Correct the error so we can edit the maps in the future?

If we go into code view, this is the map code that was generated when we first added the map block

<!-- wp:toolset/map {"mapId":"map-33","mapHeight":"500px","mapMarkerClustering":true,"mapMarkerSpiderfying":true,"mapMarkerIcon":"//cstgs.cms-web.solutions/wp-content/uploads/2020/10/google_map_marker_accommodation.png","markerId":"[\u0022marker-35\u0022]","markerSource":"[\u0022view\u0022]","markerTitle":"[\u0022{{wpv-post-title}}\u0022]","popupContent":"[\u0022{{wpv-post-link}}\\n\u003cbr\u003e\u003cbr\u003e\\n{{wpv-post-read-more}}\u0022]","markerView":"[7335]","markerPreviewView":"[7336]","markerViewField":"[\u0022wpcf-google-map\u0022]"} /-->

#2151467

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Adrian

I visited the linked page and can see the problem: that's odd.

Regarding the problem with the broken map block in the editor, that's a known issue, described here: https://toolset.com/errata/cannot-specify-view-as-source-of-markers-in-map-block-following-maps-2-0-9-release/

That erratum includes a patch. Could you apply the patch and then test again. You should be able to edit the page and see the map block working.

Does it also fix the other issue? (I suspect not, but please apply the patch first. The fix should be available soon, we are just waiting on the Systems team to approve and press the button.)

#2151649

Hi Nigel

Good that you can see the problem, which we also thought was very odd LOL. It was definitely all working OK 4-5 months ago.

Thanks for the link to the patched JS file. I uploaded to the server and that has certainly sorted the error message on the block editor.

However your assumption was spot on and it has NOT fixed the other problem.I thought that if i switched off Clustering then all the icons would display, but what happens is that NO icons display.

Any thoughts on how we can resolve this?

Kind regards
Ade

#2152529

Minesh
Supporter

Languages: English (English )

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

I can see the Map marker icons on the following page: hidden link

Are you talking about some other page?

#2152547

Hi Minesh

That is the correct URL for one of the map pages.

However, the 'clustering' icons are not the problem and yes they display. But try clicking on one of the cluster icons. The next map page, which opens and should show the individual icons, which make up the cluster is blank - NO icons are being displayed.

I tried switching off the clustering option and this had the same outcome - NO icons displayed.

This is what we need assistance with.

Kind regards
Ade

#2152617

Minesh
Supporter

Languages: English (English )

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

Let me see what I can do in that case.

Can you please share admin access details.

*** 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.

#2152751

Minesh
Supporter

Languages: English (English )

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

Can you please check now: hidden link

With the Map block, you did not selected what marker you would like to display. I selected one of the marker and its displaying:
=> hidden link

Can you please confirm it works at your end as well.

#2152763

Hi Minesh

Thank you for looking at this so quickly and confirm that is it fixed 🙂

Glad it was an easy thing to sort. But how bizarre, as these were all working and we had uploaded a custom icon, which if you look at the code higher up this thread is listed - mapMarkerIcon":"//cstgs.cms-web.solutions/wp-content/uploads/2020/10/google_map_marker_accommodation.png

Will checkout what you have done and 're-add' the custom markers to the various map pages.

Kind regards
Ade

#2152771

Minesh
Supporter

Languages: English (English )

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

You can set your custom icon or upload another one. Glad to know that its been fixed.

#2152779

My issue is resolved now. Thank you!