Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
So my Google Maps Javascript API Key is right, as it's currently displaying Maps as it should. However, upon subsequent calls with the key while attempting to use the autocomplete field, the authorization breaks and I get the "This API project is not authorized to use this API" error.
Any idea why?
Thanks
Comment | File | Size | Author |
---|---|---|---|
#5 | JSError.JPG | 36.68 KB | GAMe |
Screen Shot 2017-03-16 at 4.55.58 PM.png | 198.18 KB | gwolfman |
Comments
Comment #2
gwolfman CreditAttribution: gwolfman commentedComment #3
MarcoPBazz CreditAttribution: MarcoPBazz commentedI've noticed this error too but only if the field is required. If not it work properly.
Here's other configuration of my field:
Also I'm using latest version of addressfield and latest dev version of this module
Comment #4
GAMe CreditAttribution: GAMe commentedI too was just about to log this issue :-/ glad its not just me.
This is causing some serious issues for me. Wonder if anyone is working on a fix?
Comment #5
GAMe CreditAttribution: GAMe commentedHere is a screen shot of my error and the field is unusable for me at the moment :-/
I am too using the dev version of gmap, addressfield_autocomplete and the latest stable version of addressfield. I have also just tested this with the latest version of Geocomplete however that hasn't made a difference. I have also applied this patch https://www.drupal.org/node/2818471 to Gmap to avoid the sensor warning.
I also tested to see if it worked if I made the field not required and sadly I still have the issue.
Comment #6
GAMe CreditAttribution: GAMe commentedComment #7
MarcoPBazz CreditAttribution: MarcoPBazz commentedHi Game! I'm trying to figurite out what could be the issue and where try to patch.
I confirm that https://www.drupal.org/node/2818471 is not related, not sure if those two issues are:
Are you using a multi value field?
Comment #8
GAMe CreditAttribution: GAMe commentedHi MarcoPBazz,
Thanks for your response, the field I'm using is used on user registration and is not a multi-value field.
I have the following options set:
Address form (country-specific)
Hide country when only one is available
Default Country set to UK
Reveal Widget
Show Map
Place types set to geocode
draggable markers
visible markers
HTML5 geocode
If I get some time today I will try and play with the settings to see if any difference is made. If there is anything you would like me to do such as installing devel and providing output I'm more than happy to do so just drop me some instructions.
Thanks again :-)
Comment #9
Daniel Coy CreditAttribution: Daniel Coy commentedHello!
I resolved my issue going here Google API Places
and activating my google places API.
Was so weird because I can't find it from google developers console, but once I activated from the url above (I had to find that by google) was solved. I hope it can help anyothers.
Thanks!
Comment #10
tamonten1 CreditAttribution: tamonten1 commentedHi.
1. I apply the patch https://www.drupal.org/node/2818471
2. on https://console.developers.google.com/apis/ add " Google Places API Web Service", "Google Maps JavaScript API"
3. insert api key in gmap
4. finally, It work!
sorry for my english ))
Comment #11
retiredpro CreditAttribution: retiredpro commentedThanks tamonten1! I had "Google Maps JavaScript API" enabled but not "Google Places API Web Service". It works for me now.
Comment #12
apaderno