Streetview无法在firefox浏览器中正确呈现

时间:2013-03-27 19:04:48

标签: google-maps google-maps-api-3 google-street-view

这是我在http://jsfiddle.net/fyDkD/14/

上工作的小提琴

我的 HTML 就在这里

<div id="map-holder">
  <div id="map_canvas" class="bigmap"></div>
  <div id="map_stv" class="minimap" style="display:none"></div>
</div>

我的 CSS 就在这里

#map-holder {
    height: 1200px ;
    position: relative;
    }

.bigmap{
    width:100%;
    height:100%;
}

.minimap{
    width:50%;
    height:100%;
}

#map_stv {
    position: absolute;
    top: 0;
    right: 0;
}
#map_stv img {
    border: none !important;
    max-width: none !important;
}

在此我看到,当我们将街景小册子拖放到谷歌地图上的任何地方时,我们就会得到街景。街景视图仅适用于Firefox浏览器。我也看到,如果宽度和高度之间的差异相当大,那么我们可以很容易地看到问题。街景的img没有正确显示。请在此建议。

1 个答案:

答案 0 :(得分:0)

这可以通过添加来修复     mode: 'html5' 到panoramaOptions。我测试了它并且它有效。

请参阅Google对此发送给我们的错误报告的回答: https://code.google.com/p/gmaps-api-issues/issues/detail?id=7246