Google地图API不适用于Safari浏览器 [英] Google maps API doesn't work in safari

查看:110
本文介绍了Google地图API不适用于Safari浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我现在在我的本地主机上托管谷歌地图API,并且在Chrome和手机版本中它看起来很好。 (包括safari和chrome iPhone版本)。



我的问题是Google地图在我的Mac版Safari中没有显示。灰色(背景)显示,光标切换到Google地图光标,但地图和内容不显示。可能是什么问题?



这里是地图的链接。因为您可以看到地图在Chrome中显示,但不在safari中显示(至少不适合我)。

http:// jsbin。 com / cahicomame / 1 / edit?html,输出

解决方案

我的网站(developpement)在http而不是https :) Safari会问你的本地化。

hello im hosting Google maps API on my localhost for now, and it appears fine in Chrome and the mobile phone version. (both safari and chrome iPhone versions).

My problem is Google maps doesn't show when it comes to my Mac version of Safari. the Grey(background) shows and the cursors change to the Google maps cursor, but the map and content doesn't display. what can be the problem?

Here is a link to the map. as you can see the map displays in Chrome but not in safari.(at least not for me).

http://jsbin.com/cahicomame/1/edit?html,output

解决方案

I find the solution after 1 hours , it's because my website (developpement) was in http and not https :) Safari will ask your localisation.

这篇关于Google地图API不适用于Safari浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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