Hi,
There’s no setting or shortcode attribute for the cluster radius yet, but it’s a good idea, so the next release, 2.98.2, will add:
- A “cluster radius” field in the MapPress settings, under Clustering.
- A shortcode attribute to set it for a single map or mashup, which overrides the setting:
Until then, you can adjust cluster radius with a filter. Add this to your theme’s functions.php or a code snippets plugin:
add_filter('mappress_options', function($l10n) {
$opts = (array) ($l10n['options']['clusteringOptions'] ?? array());
$opts['radius'] = 40; // default is 80 (pixels); smaller = more, smaller clusters
$l10n['options']['clusteringOptions'] = $opts;
return $l10n;
})
This applies to all maps on the site. To limit it to one page, you can try wrapping the three middle lines in a condition such as
if (is_page('your-page-slug'))
That may not work if the map is displayed in an iframe.