I'm currently using the InfoBox plugin for Google Maps. Unfortunately, I've run into an annoying problem.
Users on my app can open an InfoBox by hovering over its corresponding marker. That works fine. The problem occurs when the InfoBox is open and the user is mousing over it. For some reason, the markers beneath the InfoBox are firing off their mouseover events. This is a big issue because it closes the current box before opening the box belonging to the marker that has just fired off its mouseover event. I've done some searching and I've found out that setting each marker to:
optimized: false
prevents this bug. However, this option slows down the map and makes it feel cumbersome to use.
My InfoBox:
infoWindows[obj.VehicleName] = new InfoBox({
content: contentString,
disableAutoPan: false,
maxWidth: 500,
pixelOffset: new google.maps.Size(-250, -490),
boxStyle: {
width: "500px"
},
enableEventPropagation: false,
infoBoxClearance: new google.maps.Size(45, 1)
});
My listener:
google.maps.event.addListener(marker, 'mouseover', function() {