Title: Wrong cluster
Last modified: October 31, 2023

---

# Wrong cluster

 *  [3551](https://wordpress.org/support/users/3551-1/)
 * (@3551-1)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/wrong-cluster/)
 * Hello, when he used the [cluster] tag he did it wrong, but not on the entire 
   map.
 * I want to do it because of proximity (lat,long), in some cities it does well,
   but in others it doesn’t.
 * When they are two nearby cities, it groups it, but in the same city with several
   markers it does not work.
 * And I don’t understand what the error is.
 *     ```wp-block-code
       <?php echo do_shortcode('[leaflet-map height="500" lat=-49.1380049290461 lng=-66.44531250000001 zoom=5 fitbounds zoomcontrol !detect-retina]') ?>
   
       <?php $shortcode = '[leaflet-marker iconUrl="..." iconSize="25,41" iconAnchor="12.5,45" lat='...' lng='...']City Name[/leaflet-marker]' ?>
       ```
   
 *     ```wp-block-code
       <?php echo do_shortcode('[cluster]') ?>
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwrong-cluster%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [3551](https://wordpress.org/support/users/3551-1/)
 * (@3551-1)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/wrong-cluster/#post-17164423)
 * I can solve it using this shortcode [placementstrategies]
   instead of [cluster].
 * The information is not in the plugin within WordPress, you have to go to the 
   plugin’s website.
 * [https://leafext.de/en/cluster/placementstrategies/](https://leafext.de/en/cluster/placementstrategies/)
 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/wrong-cluster/#post-17179123)
 * Sorry about the late answer, I have rarely been online in the last few weeks.
 * I guess it was due to the setting of `disableClusteringAtZoom`: If set, at this
   zoom level and below, markers will not be clustered.
 * The shortcode `placementstrategies` is documented at [https://your-domain.tld/wp-admin/admin.php?page=extensions-leaflet-map&tab=markerclusterplacementstrategies](https://your-domain.tld/wp-admin/admin.php?page=extensions-leaflet-map&tab=markerclusterplacementstrategies)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Wrong cluster’ is closed to new replies.

 * ![](https://ps.w.org/extensions-leaflet-map/assets/icon-256x256.png?rev=3067862)
 * [Extensions for Leaflet Map](https://wordpress.org/plugins/extensions-leaflet-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/extensions-leaflet-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/extensions-leaflet-map/)
 * [Active Topics](https://wordpress.org/support/plugin/extensions-leaflet-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/extensions-leaflet-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/extensions-leaflet-map/reviews/)

## Tags

 * [cluster](https://wordpress.org/support/topic-tag/cluster/)

 * 2 replies
 * 2 participants
 * Last reply from: [hupe13](https://wordpress.org/support/users/hupe13/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/wrong-cluster/#post-17179123)
 * Status: not resolved