问题
I just created an API key for using with my site, the map is going to just show where the company it's placed.
But somehow the map is loaded and then it self refreshed and shows the ExpiredKeyMapError in the js console.
Have you got any idea what it can be?
PS: I tried to re-create it from another account and remove any non google parameters from url generation and still not working.
Page is: https://corporativo.androsol.com/contact/
Thanks for any help!
回答1:
For me it showed that Javascript Maps API was enabled, I had to disable and enable it again.
回答2:
I experimented the same error. I think this is because Javascript Maps API is disabled. To solve go to https://console.developers.google.com/apis/library and click in Google Maps JavaScript API. I found this solution at ExpiredKeyMapError on newly generated API key. Sorry for poor english. I hope it helps.
来源:https://stackoverflow.com/questions/41631982/google-maps-expiredkeymaperror-with-recently-created-api-key