Under particular circumstances (not sure what yet) when calling theme('gmap') with a custom argument the marker autoclick proper doesn't trigger the click event. The following code (around line 40) seems to fix it

    if (marker.autoclick || (marker.options && marker.options.autoclick)) {
      //obj.deferChange('clickmarker', -1, marker);
      setTimeout(function () {
          obj.change('clickmarker', -1, marker);
        }, 1000);   
    }

Is there a better way to fix this, eg wait until it's ready rather than wait 1000 milliseconds? Do you need more info? It is just running on my development box at the moment so can't give a demo URL.

Comments

emilorol’s picture

Hi,

How do you enable the autoclick on a marker?

Is there a way to have it like the new drupal theme for this site (drupal.org) where the map in the front page rotate the makers info window?

Thank you,
Emil

crutch’s picture

subscribe

looking for autoclick for a gmap view with attachment list. The map contains markers and is centered on specific argument nid using Global: Null field. All works well but can't discover how to autoclick the first result in the map or list.

dwatts3624’s picture

Subscribing