Support

Account

Home Forums Backend Issues (wp-admin) Google Map TypeError Reply To: Google Map TypeError

  • Hi @elliot,

    Thanks for your excellent work.

    I have also found the same issue that @controlyours had, but the script was being loaded just fine. The problem I found is that it wasn’t getting the places library.

    I changed the js call in wp-content/plugins/acf-location-field/location-v4.php in Ln 94 from

    echo '<script src="https://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascript"></script>';

    to

    echo '<script src="//maps.googleapis.com/maps/api/js?sensor=false&libraries=places" type="text/javascript"></script>';

    How do you feel about this approach? I am not happy to change the plugin files, since an update could remove those.

    Many thanks,
    Manu