I am currently using the InfoBox plugin for Google Maps. Unfortunately, I ran into an annoying problem.
Users of my application can open the InfoBox, hovering above its corresponding token. It works great. The problem occurs when the InfoBox is open and the user is silent about it. For some reason, the tokens below the InfoBox are firing their mouseover events. This is a big problem because it closes the current field before opening the window that belongs to the marker just taken from its mouseover event. I did some searches, and I found out that setting each marker:
optimized: false
prevents this error. However, this option slows down the card and makes it very cumbersome.
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() {
source share