Google地图有灰色部分 [英] Google maps has grey section

查看:235
本文介绍了Google地图有灰色部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用PHP Laravel框架,JavaScript和jQuery开发Web应用程序。



我正在通过Javascript与Google Maps API进行集成,但我有些奇怪行为如图所示

< img src =https://i.stack.imgur.com/78ADm.pngalt =在这里输入图片描述>



I don不知道为什么我用这种奇怪的方式有灰色部分



这里是我的js代码

  var map = new google.maps.Map(document.getElementById('my_map'),{
center:{lat:-34.397,lng:150.644},
scrollwheel:假,
zoom:8
});

任何帮助将不胜感激,提前致谢

解决方案

这是一个缓存问题,在我回到上面提到的基本示例之后,我必须清除缓存并且它现在可以正常工作


I am working on a web application using PHP Laravel framework, javascript and jQuery.

I am working on the integration with google maps API via Javascript but I have strange behavior as shown in the picture

I don't know why I have the grey section in this strange way

here is my js code

 var map = new google.maps.Map(document.getElementById('my_map'), {
 center: {lat: -34.397, lng: 150.644},
 scrollwheel: false,
 zoom: 8
});

Any help will be appreciated , Thanks in advance

解决方案

It was a caching problem, After I revert to the basic sample mentioned above I'd have to clear cache and it now working perfectly

这篇关于Google地图有灰色部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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