Skip Navigation

[Resolved] Map zoom for multiple markers not working

This thread is resolved. Here is a description of the problem and solution.

Problem:

Setup Google map zoom level and map center manually.

Solution:

You can follow our document to setup the map shortcode manually:

Relevant Documentation:

https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-render

This support ticket is created 2 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
- 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 5 replies, has 3 voices.

Last updated by jasonH-5 2 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#2275071
Screen Shot 2022-01-25 at 7.46.33 AM.jpg

Hello, I have a map block that dynamically displays 3 locations but the map seems to be stuck on the zoom level that just fits the 3 locations. I am noticing the zoom level slider select says "Adjust for one marker" even though there are 3.

I am wondering if this is a bug or if I have a setting incorrect

#2275271

Nigel
Supporter

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

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

The zoom level for one marker setting is to specify what zoom level should initially be used when the map contains only one marker.

If there are multiple markers on the map then the zoom will be automatically adjusted to fit in all of the markers, but that concept doesn't make sense when there is only one marker, hence the setting.

Understanding that, can you confirm if you do have a problem?

#2275441
Screen Shot 2022-01-25 at 12.04.16 PM.jpg
Screen Shot 2022-01-25 at 12.04.11 PM.jpg

I understand this. My issue is that the user cannot see the markers clearly and my client requests a specific zoom level. I attached 2 images. One is the default where you can see one marker is cut off at the top the other is what I need to have which is one zoom level out.

Is this possible to do?

Thank you for your help Nigel!

#2275865

Hello,

There isn't such a built-in feature within Toolset Maps plugin, see our document:
https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-render

fitbounds. Optional, defaults to on. Can be on or off. When on, the map zoom and center will be calculated to show all the markers at once in the closest possible view.

You might consider to use a smaller image for the map marker.

#2276135

So could I set fit bounds to off and then manually set the center point and zoom level?

#2276521

So yes if I set the Lat, Lon manually it centers the map and I can set zoom level. Thank you