Hello,
I would like to adjust the focus of the Map focus on marker function.
Currently, the focus seems to be fixed and I would like to know if there is a way to adjust it in order to offer a better precision of the adresse position covered by the market.
Let me know
Regards
Pat
Hi Pat,
Thank you for contacting us and I'll be happy to assist.
If you'd like to adjust the zoom or focus level for your current map marker, you can adjust the attributes for your map's shortcode [wpv-map-render], as explained at:
https://toolset.com/documentation/user-guides/maps-shortcodes/#wpv-map-render
If you could share the link to your page with map and the map and marker shortcode that you're currently using, I'll be in a better position to guide you accordingly.
regards,
Waqar
Hi Waqar,
Thanks for helping.
In fact, I'm using the Map focus on marker function and did not found the way to adjust the zoom level.
I'm displaying on a map several adresses and have created the different links related to these adresses (I have followed this documentation : https://toolset.com/documentation/user-guides/maps-shortcodes/#map-focus-on-marker). I'm using here the example : <button class="js-wpv-addon-maps-focus-map" data-map="map-8" data-marker="[wpv-post-id]-marker-id">Focus on marker</button>
Now the issue I have is I have not found the way to define which zoom level I can use for this focus function (ie : when the user clicks on the link, the map zoom on the specific address and place this marker in the center of the map). As for some adresses, several are very near one from the others, I would prefer to be able to zoom at the maximum and be sure that the related address is well defined visually.
So, if you can lead me on this and tell me which parameter I can use to adjust this focus zoom level.
Thanks
Pat
Hi Pat,
Thank you for sharing these details.
To adjust the zoom level when a single marker is focused, you can include "single_zoom" attribute to the "wpv-map-render" shortcode.
( ref: https://toolset.com/documentation/user-guides/maps-shortcodes/#wpv-map-render )
The default value is "14" and to zoom in you can increase it (up to 22) and to zoom out, you can decrease it (down to 0).
Example:
[wpv-map-render map_id="map-2" single_zoom="18"][/wpv-map-render]
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar
My issue is resolved now. Thank you!