You could try mine I guess…
function rt_load_plugin_css () {
$mapkey; //replace variable with your actual ke
$mapkeyurl = 'https://maps.googleapis.com/maps/api/js?key='.$mapkey;
$dir_url = get_template_directory_uri() . '/js/acf-map.js';
wp_enqueue_script( 'map_script', $dir_url, array('jquery'), '1.0', true );
wp_enqueue_script( 'googlemap', $mapkeyurl, true);
}
add_action ('wp_enqueue_scripts', 'rt_load_plugin_css');