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
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
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]
Looks like I just needed to add lat and long coords...