Map Facet – zoom when cluster is clicked

<?php

add_filter( 'facetwp_map_init_args', function( $settings ) {
    if ( isset( $settings['config']['cluster'] ) ) {
        $settings['config']['cluster']['zoomOnClick'] = true;
    }
    return $settings;
});