Support

Account

Home Forums General Issues Google Maps map does not work Reply To: Google Maps map does not work

  • I managed to fix it myself.

    I did entered the Google Maps API key through:

    // Method 2: Setting.
    function my_acf_init() {
        acf_update_setting('google_api_key', 'xxx');
    }
    add_action('acf/init', 'my_acf_init');

    But I notice I forgot to put it in the javascript code aswel:

    <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=Function.prototype"></script>
    <script type="text/javascript">

    So I did that and now it worked.