need to replace this line:
wp_enqueue_script( ‘google-maps-api’, ‘//maps.google.com/maps/api/js?sensor=false&callback=initMap&key=’ . sanitize_text_field( $atts[‘key’] ) );
to this one:
wp_enqueue_script( ‘google-maps-api’, ‘//maps.google.com/maps/api/js?key=’ . sanitize_text_field( $atts[‘key’] ) );