0
我正在創建谷歌地圖v3的網站https://yachtcharterbook.com。我有標記和infowindows彈出式標記鼠標。當infowindows出現時,我嘗試通過鼠標瀏覽它,但是當另一個標記在它下面時 - 當前infowindow關閉,第二個彈出窗口。我沒有真正理解的層或面板或z-index有問題。我試着玩infowindow窗格:'floatPane',窗格:'mapPane',infowindow和標記上的zIndex,但沒有更改。也許你有一些想法,爲什麼它發生?谷歌地圖v3標記信息框
var ib = new InfoBox();
latLng = new google.maps.LatLng(38.909593, -76.419036);
marker[282] = new google.maps.Marker({
position: latLng,
map: map,
icon: defIcon
});
var infobox282 = {
content: document.getElementById('infobox282'),
disableAutoPan: false,
maxWidth: 0,
pane: 'floatPane',
pixelOffset: new google.maps.Size(20, -74),
zIndex: null,
alignBottom: false
};
google.maps.event.addListener(marker[282], 'mouseover', function() {
ib.close();
ib.setOptions(infobox282)
ib.open(map, this);
});
<div class="bubble" id="infobox282">
<h1>США, <span>Chesapeake Bay</span></h1><div class="objects">
<div class="link">
<a href="https://yachtcharterbook.com/ru/yacht-charter/country/230/area/282/prop_type/6">Парусные катамараны (1)</a>
</div>
</div><div class="objects">
<div class="link">
<a href="https://yachtcharterbook.com/ru/yacht-charter/country/230/area/282/prop_type/5">Парусные яхты (13)</a>
</div>
</div><div class="objects">
<div class="link">
<a href="https://yachtcharterbook.com/ru/yacht-charter/country/230/area/282">Все яхты (14)</a>
</div>
</div></div>
謝謝!