简体   繁体   English

在托管网站上不会加载Google地图

[英]Google map will not load while on hosting website

Google map will not load while hosting. 托管时不会加载Google地图。 But it is clearly working on localhost. 但是它显然可以在localhost上运行。 I changed API key multiple times. 我多次更改了API密钥。 but no use. 但没有用。 I don't know what the issue is. 我不知道问题是什么。 Please help me. 请帮我。

<script src="http://maps.google.com/maps/api/js?key=AIzaSyB9KAwLECqv1mfbJVvzoy-otIBTl6gBIN4&sensor=true" type="text/javascript"></script>
<script type='text/javascript' src='assets/gmaps.js'></script>

well hosting site might be SSL secured. 托管良好的网站可能受SSL保护。 if so try https 如果是这样,请尝试https

https://maps.google.com/maps/api/js https://maps.google.com/maps/api/js

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM