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
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.