Sauter la navigation

[Résolu] Change focus of the Map focus on marker function

This support ticket is created Il y a 5 années et 10 mois. 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)

Ce sujet contient 4 réponses, a 2 voix.

Dernière mise à jour par Pat Il y a 5 années et 10 mois.

Assisté par: Waqar.

Auteur
Publications
#1208699

Pat

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

#1209411

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

#1209451

Pat

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

#1209807

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

#1209844

Pat

My issue is resolved now. Thank you!