Google街景视图无法在wordpress标签中显示

时间:2015-10-06 16:09:40

标签: javascript css wordpress google-maps google-maps-api-3

我正在尝试使用Wp Google Map WordPress插件在标签页中显示Google地图和街景视图。在第一个标签上,我放置了地图的短代码,它完美地显示,在第二个Ii中放置了街景视图的短代码,但我只看到灰色背景和控件,街景地图不显示。

这是我的网页http://pjvarquitetura.com.br/citycentrebooking/st_hotel/flat-110/

如果单击街景视图选项卡,则会显示控件,如果单击全屏选项,也会显示灰色背景和地图。

知道怎么解决吗?

我正在使用此插件http://www.flippercode.com/product/wp-google-map-pro/来显示地图。

1 个答案:

答案 0 :(得分:1)

我正在播放街景地图(在Chrome 45.0.2454.101上)。加载只需要一些时间。

虽然如果你在控制台中查看,你会发现以下错误:

  

您已在此页面上多次添加Google Maps API。   这可能会导致意外错误。

如果您查看JS文件,您确实会发现您包含两倍的API:

<script type='text/javascript' src='http://pjvarquitetura.com.br/citycentrebooking/wp-content/themes/citycenter-layout/js/gmap3.js'></script>
<script type='text/javascript' src='http://maps.googleapis.com/maps/api/js?v=3.exp&#038;signed_in=true&#038;libraries=places'></script>

这可能是它在某些浏览器上崩溃的原因。