pixelOffset: new google.maps.Size(-110, -68) and maxWidth: 0 make infoWindow size and position bug.
These properties doesn't seem usefull anymore.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Kleinast created an issue. See original summary.

maciej.zgadzaj’s picture

Status: Active » Postponed (maintainer needs more info)

These properties doesn't seem usefull anymore.

Are you getting any kind of error anywhere because of them? If so, please provide the details, and how to reproduce the issue. As "doesn't seem usefull anymore" (for you) is not really a valid reason to be removing them from the module...

benJBmC’s picture

I had the same issue with the 7.x-2.x-dev version of the module.
The patch made by Kleinast is rejected for this version, but it is the right way to correct the issue. I changed it like below and voilà :

// Tooltip window
if (typeof InfoBox == 'function') {
  var info = new InfoBox({
    content: "loading...",
    maxWidth: 0,
    pixelOffset: new google.maps.Size(-110, -68),
    alignBottom: true,
    zIndex: null,
    closeBoxMargin: "15px",
    closeBoxURL: "http://www.google.com/intl/en_us/mapfiles/close.gif",
    isHidden: false,
    pane: "floatPane",
    enableEventPropagation: false
  });
}
else {
  var info = new google.maps.InfoWindow({
    content: "loading...",
//        maxWidth: 0,
    maxWidth: 300,
//        pixelOffset: new google.maps.Size(-110, -68),
    zIndex: null
  })
}