admin管理员组

文章数量:1293457

I am trying to set up a new application to use a google map. I got the api key from another teammate who did the set up. I am wondering if there's a utility or some other way to check if the api key he gave me is valid. I am getting the following console error when running my application using the api key he gave me:

Google Maps JavaScript API warning: NoApiKeys  messages#no-api-keys xw.m @ util.js:219 (anonymous) @ js?key [key]&callback=initMap:122 Promise.then (async)(anonymous) @ js?key=[key]&callback=initMap:122

I am trying to set up a new application to use a google map. I got the api key from another teammate who did the set up. I am wondering if there's a utility or some other way to check if the api key he gave me is valid. I am getting the following console error when running my application using the api key he gave me:

Google Maps JavaScript API warning: NoApiKeys https://developers.google./maps/documentation/javascript/error- messages#no-api-keys xw.m @ util.js:219 (anonymous) @ js?key [key]&callback=initMap:122 Promise.then (async)(anonymous) @ js?key=[key]&callback=initMap:122
Share Improve this question asked Mar 29, 2019 at 13:55 R.P.R.P. 1391 gold badge1 silver badge10 bronze badges 3
  • 1 Well, if you run your application and such an error is thrown, it looks like you've either implemented the API call wrong or the key is invalid – Nico Haase Commented Mar 29, 2019 at 13:56
  • Someone asked this question before. enter link description here – mkltkn Commented Mar 29, 2019 at 15:00
  • 1 The developer who set up this key is telling me that this key has been enabled and used in the past. He is skeptical when I tell him that the key is invalid. How could I confirm forsure that the key is invalid and its not something specific to my code/version/browser... – R.P. Commented Mar 29, 2019 at 15:22
Add a ment  | 

1 Answer 1

Reset to default 1

There is a google chrome addon for that: https://chrome.google./webstore/detail/google-maps-platform-api/mlikepnkghhlnkgeejmlkfeheihlehne

本文标签: javascriptHow can I verify if my google maps API key is validStack Overflow