Skip Navigation

[Resolved] Set zoom with wpv-map-marker

This support ticket is created 6 years 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/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by davidZ 6 years ago.

Assisted by: Waqar.

Author
Posts
#1136185
map zoom.png

I have a shortcode in my view:

[wpv-map-marker map_id='map-10' marker_id='marker-10' marker_title='Title' marker_icon='//anytyme.wpengine.com/wp-content/uploads/2018/10/marker.png' marker_field='wpcf-address' map_height="500px"]<h5>[wpv-post-title]</h5>[/wpv-map-marker]

I'm trying to set a default zoom, but nothing I do seems to affect the zoom.

Thanks

#1136708

Hi David,

Thank you for contacting us and I'll be happy to assist.

To control the map's default zoom level, you'll need to adjust the arguments supplied to the "wpv-map-render" shortcode:
https://toolset.com/documentation/user-guides/maps-shortcodes/#wpv-map-render

Please make sure that the "fitbounds" argument is set to "off" and the "general_zoom" is set to your desired zoom value.

You'll also find these options, when generating map's shortcode, through the "Fields and Views" button.
( screenshot: hidden link )

I hope this helps.

regards,
Waqar

#1136954

When I turn fitbounds off, the map centers in the South Atlantic ocean off Gabon....

Here's what I have:

[wpv-map-render map_id="map-10" map_height="600px" general_zoom="10" fitbounds="off" single_center="on" cluster="off" draggable="on" double_click_zoom="on" map_type_control="on" street_view_control="on" zoom_control="on"][/wpv-map-render]

#1136956

Looks like I just needed to add lat and long coords...