Support

Account

Home Forums Feature Requests Map field – ability to change a default map type Reply To: Map field – ability to change a default map type

  • With a nudge in the right direction from ACF support, I was able to achieve exactly what I wanted, namely removing some controls from my acf_form front-end Google Map inputs, via the ‘new’ JavaScript API’s google_map_args filter found at https://www.advancedcustomfields.com/resources/javascript-api/#filters-google_map_args

    acf.add_filter('google_map_args', function( args, field ){
    
    	args[ 'mapTypeControl' ] = false;
    	args[ 'streetViewControl' ] = false;
    	args[ 'fullscreenControl' ] = false;
    
    	return args;
    })