Google Maps API key not working

前端 未结 8 1661
生来不讨喜
生来不讨喜 2021-01-04 00:38

I\'m having a problem with getting my Google Maps API key to work. I originally had the problem when trying to access http://dev.domain.com using a key generated for http://

8条回答
  •  生来不讨喜
    2021-01-04 01:02

    I've been fighting key issues for the last couple of hours. Was working on localhost, but not on my local network address or a domain name. I solved the issue by changing v=2 to v=2.x. I haven't tried 2.s. Also adding alert(window.location.host) for both my localhost address and domain name to a Browser Key in google's api console for maps v2.

提交回复
热议问题