Events Manager Google Map Zoom

Change the default zoom of the Google Map shown on the event page using jQuery using the following:

jQuery(document).bind('em_maps_location_hook', function( e, map, infowindow, marker ){
    map.setZoom(11);
	});

This is best placed in a js file in your theme which is then enqueued using the following in the theme functions.php file:

function babelscribe_load_scripts() {

    // register your script location, dependencies and version

    wp_register_script('action_script', get_stylesheet_directory_uri().'/js/actions.js', array('jquery'));

    // enqueue the script

    wp_enqueue_script('action_script');
}

add_action( 'wp_enqueue_scripts', 'babelscribe_load_scripts' );