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
1 Answer
Reset to default 1There 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
版权声明:本文标题:javascript - How can I verify if my google maps API key is valid? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741579748a2386499.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论