地图无法在Chrome上运行

时间:2017-04-24 08:59:09

标签: javascript google-maps google-chrome

我的网站上有2张地图,第一张地图在主页上,第二张在联系网站上。 只有第二张地图无法在Google Chrome上正常运行,在其他浏览器(Safari,Firefox)上才有效。

http://spelnionychmarzen.pl/kontakt/

控制台在Chrome中引发错误,但我不清楚。

你能帮帮我吗?你还需要什么信息?

非常感谢!

1 个答案:

答案 0 :(得分:0)

我看到了您的Google地图API参数:

self.dismissViewController(_:)

联系页面中的浏览器https://maps.googleapis.com/maps/api/js?key=AIzaSyAtPniL8HPtR4YcWroMGuYltVAOfSY7UBU&callback=mapcontact对象中不存在mapcontact功能。

解决方案是在window对象下创建mapcontact函数,就像您在window中所做的那样:http://spelnionychmarzen.pl/wp-content/themes/developer/mapa.js

相关问题