Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google maps 地图不显示在Safari上_Google Maps_Safari - Fatal编程技术网

Google maps 地图不显示在Safari上

Google maps 地图不显示在Safari上,google-maps,safari,Google Maps,Safari,我正在初始化地图,如下所示: function initialize() { var map_canvas = document.getElementById('map_canvas'); var map_options = { scrollwheel: false, center: new google.maps.LatLng(56.4611388, -2.9719832), zoom: 17, mapTypeId: google.maps.

我正在初始化地图,如下所示:

function initialize() {
   var map_canvas = document.getElementById('map_canvas');
   var map_options = {
     scrollwheel: false,
     center: new google.maps.LatLng(56.4611388, -2.9719832),
     zoom: 17,
     mapTypeId: google.maps.MapTypeId.ROADMAP,
     originalCenter: new google.maps.LatLng(56.4611388, -2.9719832)
}
map = new google.maps.Map(map_canvas, map_options)
地图在包括Safari Mobile在内的所有浏览器上都显示良好,但Safari mine在OS X上的版本为7.0.3。您可以查看我的页面


我进行了一些搜索,发现Safari和谷歌地图存在类似问题,但没有结果。

您是否尝试过v=3而不是实验版本?我不确定这是否有帮助。您在Safari中是否遇到任何javascript错误?可能与页面上特定于Safari的代码有关。浏览器检测可能有问题。@geocodezip感谢您的帮助!不,safari代码不影响它,我得到同样的东西没有。我会检查发布版本,然后再给你回复@geocodezip我认为当从https://maps.googleapis.com/maps/api/js 据我所知,它自动使用最新版本。所以还没有…如中所述,加载实验版本v3.exp当前为3.17,我建议尝试发布版本v=3,当前为3.16,冻结版本v=3.0,当前为3.15;可能无法修复它。我现在没有野生动物园。