Skip Navigation

[Resolved] Some map results display only after zooming in

This support ticket is created 5 years, 10 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 5 replies, has 2 voices.

Last updated by TimR4704 5 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#1216542

Link to a page where the issue can be seen: hidden link

Please follow these steps on the above page:
Type: select Trainer from "Therapist types"
And check Children and Adolescents
(Leave Town or city blank)
Search map

On the map, it appears to only show results in London. If you zoom into the map, there are other results.

Any ideas?

Also, the map doesn't display my loading message. Do you know why?
(Try searching "Consultant" and leave the free text field blank)

#1216862

Nigel
Supporter

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

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

Hi Tim

I can see the issue on the front end. It's not something I've come across before, could I take a look at how you have set this up in the back-end?

Let me mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.

#1217514

Nigel
Supporter

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

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

Hi Tim

It seems like the settings when you turn the fitbounds option off appear to be the problem. Removing all of those from the wpv-map-render shortcode seems to fix the problem, but I can see why you want to set the map position and zoom manually.

We'll need to do some more detailed testing, and as you already have the data set up it would be easiest to use a copy of your site.

I just wanted to check that's okay with you before I install a plugin to make a duplicate.

#1217667

Yes that's fine, please go ahead.

#1218098

Nigel
Supporter

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

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

before zoom.png
after zoom.png

Hi Tim

Looking again, I think this is working as expected.

I made a fresh page with a simplified version of the map View, being careful to keep the same custom settings you have for the map-render shortcode.

Check the two screenshots.

After performing the search I see a marker near Brighton and a cluster of 5 markers near Wales, so six markers in total.

After zooming in I see more markers—but still 6 markers in total, now distributed.

This is a result of your settings for cluster size etc.

You can see a list of the shortcode attributes available with map-render here: https://toolset.com/documentation/user-guides/maps-shortcodes/#wpv-map-render

Try experimenting with the settings until you get results you are happy with.

The actual choice to cluster 5 markers near Wales (including two from London) and leave one in Brighton results from how Google interprets the settings you specify. All Toolset is doing here is passing on the settings to the Google API, it doesn't have a role in determining how things get clustered.

#1219627

My issue is resolved now. Thank you!