Passer la navigation

[Résolu] openstreetmap cluster zoom

This support ticket is created Il y a 1 month, 1 week. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 21 réponses, a 1 voix.

Dernière mise à jour par Minesh Il y a 4 weeks.

Assisté par: Minesh.

Auteur
Publications
#2859515

yes, cluster_max_zoom did the trick.
But now the map stil keeps zooming in on africa. Maybe because most of our projects are there?!
This is the shortcode:
[wpv-map-render map_id="map-alle-projecten" map_height="520px" fitbounds="off" general_zoom="1" single_zoom="3" cluster_max_zoom="14" cluster="on" spiderfy="on"][/wpv-map-render]
Should I change something?

#2859516

...

#2859600

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

What exactly you want to do? You want to change the map center?

#2859607
Screenshot from 2026-04-27 10-00-58.png

yes, i would like to zoom out to see the whole world. Like this image example. Is it possible? On google maps it worked.

#2859655

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

I've added the following custom JS code to content template's JS edior:
=> lien caché

var delayed = function() {
    
previewmap  = WPViews.view_addon_maps.maps['map-4'];
      
   previewmap.setZoom(4);
      
 
};
    
jQuery(document).ready(function(){
  setTimeout( delayed,  1000);  
});

What if you use that and adjust the zoom level number as required.

#2859752

Thank you.
Great, that works well. I set the zoom to 2 to get world overview.
So will this only work with the maps beta version? Or will there be a new version soon with this integrated?

#2859754

I already tested this also works with the 2.2.1 version maps plugin. Great.

#2859762

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Glad that the solution I shared help you to resolve your issue. Pleaes kindly open a new ticket with every new question you may have. This will help other users searching on the forum.

Thank you for your understanding.