Support

Account

Home Forums Backend Issues (wp-admin) Google Maps is not working Reply To: Google Maps is not working

  • Same problem here with ACF Pro 5.8.4.
    I had activated

    • Maps Embed API
    • Maps JavaScript API

    Now I deeded to activate

    • Places API

    ,too. So I have

    • Maps Embed API
    • Maps JavaScript API
    • Places API

    Works.

    This is the way I load the script in my functions.php:

    wp_register_script('aa_js_googlemaps_script',  'https://maps.googleapis.com/maps/api/js?v=3.exp&key=XXX'); // with Google Maps API fix
    		wp_enqueue_script('aa_js_googlemaps_script');

    and

    function my_acf_init() {	
    	acf_update_setting('google_api_key', 'XXX');
    }
    add_action('acf/init', 'my_acf_init');