<?php
/**
* remove controls from google map
*/
add_filter( 'facetwp_map_init_args', function ( $args ) {
$args['init']['zoomControl'] = false; // +- zoom control
$args['init']['mapTypeControl'] = false; // map / satellite toggle
$args['init']['streetViewControl'] = false; // street view / yellow man icon
$args['init']['fullscreenControl'] = false; // full screen icon
/** this overwrites all 4 lines above and will disable ALL of the default ui icons instead of the individual icons above */
$args['init']['disableDefaultUI'] = true; // disable the default ui
return $args;
} );