facetwp change ui icons for google maps

djrmom

{{gist file=”custom-hooks.php” lang=”php”}}
<?php
/**
* remove controls from google map
*/
add_filter( ‘facetwp_map_init_args’, function( $settings) {

$settings[‘init’][‘zoomControl’] = false; // +- zoom control
$settings[‘init’][‘mapTypeControl’] = false; // map/satillite toggle
$settings[‘init’][‘streetViewControl’] = false; // street view / yellow man icon
$settings[‘init’][‘fullscreenControl’] = false; // full screen icon

/** this will disable all of the default ui icons instead of the individual icons above */
//$settings[‘init’][‘disableDefaultUI’] = true; // disable the default ui

return $settings;
});
{{/gist}}