谷歌地图API错误? [英] Google Maps API bug?

查看:96
本文介绍了谷歌地图API错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google API建立了一个网络应用程序。昨天它运行良好,但今天我看不到地图了,只是一个灰色的背景。地理坐标很好,所有标记都处于良好位置,但地图未加载。

它与API有关吗?有没有人经历过这个?可能是由于跨域或政策问题?刚才发现可能是由于v = speficied

/ p>

所以你应该使用v = 3.3

 < script src = https://maps-api-ssl.google.com/maps/api/js?v=3.3&sensor=falsetype =text / javascript>< / script> 


I built a web app where I'm using the Google API. Yesterday it worked fine but today I can't see the map anymore, just a grey background. The geo coordinates are fine and all the markers are in good position but the map isn't loading.

Is it something related to the API? Has anyone experienced this? Might be due to a cross-domain or policy issue?

解决方案

just found that is may be due to the v= speficied

so you should use v=3.3

<script src="https://maps-api-ssl.google.com/maps/api/js?v=3.3&sensor=false"  type="text/javascript"></script>

这篇关于谷歌地图API错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆