Skip Navigation

[Résolu] Can’t zoom into markers when addresses too close

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem: I'm displaying a map with cluster markers, but I would like to show distinct markers when zoomed in.

Solution: One option is to use the cluster_max_zoom attribute on the wpv-map-render shortcode. This option can be used to break apart clusters when zoomed in past a certain level. It's in the clustering options in the map shortcode popup, or you can set it manually like this:

[wpv-map-render map_id="map-1" cluster="on" cluster_max_zoom="14"][/wpv-map-render]

You can experiment with the numeric value to see what works best for your content.

Another option is you can use the spiderfy feature to spread out markers that are in identical locations.

Relevant Documentation:
https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/#grouping-close-markers-into-clusters

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

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

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

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

Assisté par: Christian Cox.

Auteur
Publications
#1179328
map3.PNG
map2.PNG
map1.PNG

When I go to my map lien caché and I have a cluster of addresses that are too close I can't get it too zoom in to individual map markers when the addresses are really close. If I go to no clusters it works fine, it's like I need the cluster to break apart at an earlier map zoom level or something?

#1179443

Hi, one option is to use the cluster_max_zoom attribute on the wpv-map-render shortcode. This option can be used to break apart clusters when zoomed in past a certain level. It's in the clustering options in the map shortcode popup, or you can set it manually like this:

[wpv-map-render map_id="map-1" cluster="on" cluster_max_zoom="14"][/wpv-map-render]

You can experiment with the numeric value to see what works best for your content.

Another option is you can use the spiderfy feature to spread out markers that are in identical locations. We have some documentation about that available here: https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/#grouping-close-markers-into-clusters

#1180193

My issue is resolved now. Thank you!