Hello,

I go it all work the gmap + location + gmap location modules. The markers do display in the node location page. I did set the option Marker action (im Gmap) to Open info window or Open link, but when I click on a marker, nothing happens.

I'd like the node page to appear.

Any idea ?

Thanks!

Comments

sergio39’s picture

Indeed everything works fine but clicking on those markers in node.location does not do anything.

globalplayer’s picture

same problem here

eggthing’s picture

Yup. Me too.
Clicking the marker doesn't do anything. I wonder if this anything to do with all the jstools/ajax modules I've got enabled? And BTW where are the clicked links supposed to open to? Maybe there is a url we forgot to fill in somewhere? How's the marker supposed to know, or is there somekind of default ie: usernode.

Meg Lee Chin
http://megleechin.com

kubajs’s picture

just today I realised the very same problem - then downloaded the latest gmap module (26.june) and everythings work fine - you can choose in gmap settings if show info or open link or do nothing on clicking the marker and now it really works (at least in my case)

Anonymous’s picture

I'm having a similar problem but with the most current Gmap and Gmap Location modules. When I click on a marker, it immediately jumps to the associated node despite the fact I set it to "do nothing." Any ideas on what to do?

hanief84’s picture

Same here.

markwittens’s picture

...in gmap.module approximatly at line 882 the following happens:

  // Add a class around map bubble contents.
  // @@@ Bdragon sez: Becw, this doesn't belong here. Theming needs to get fixed instead..
  if (isset($map['markers'])) {
    foreach ($map['markers'] as $i => $marker) {
        $map['markers'][$i]['text'] = '<div class="gmap-popup">' . $marker['text'] . '</div>';
    }
  }

To fix the problem and remove the click you can simply add the condition "if ($marker['text'])" before the text is set since there won't be a popup with no text. My code is now like this:

    foreach ($map['markers'] as $i => $marker) {
      if ($marker['text']) {
        $map['markers'][$i]['text'] = '<div class="gmap-popup">' . $marker['text'] . '</div>';
      }
    }

And with this code the action "Do nothing" will actually do ehm, nothing. :-)