I have a GMap on every node of a particular type. I also have a site wide GMap that displays all the nodes. I have the default marker mode set to 1, or display popup with the appropriate fields, mainly a link to the nodes page. This works fine.

On the Gmap for every node, it only displays a marker for that node, which works great. I would like to override the markermode so clicking on it does nothing as we are already on that nodes page. In my macro setting for gmap I have the following:

[gmap maxzoom=6 | width=320px | height=200px | behavior=+autozoom +drag | markermode=0 ]

As you can see I have markermode set to 0(zero). But this does nothing.

I looked in gmap_parse_macro.inc and it has nothing in it to set markermode.

Has this ever worked?

Scott

Comments

kvick’s picture

Same issue here.

kvick’s picture

I did a workaround by setting the markertext to null in javascript:

$(document).ready(function(){

/*replace auto1map with whatever your map is called*/

if(Drupal.settings.gmap.auto1map)
{
Drupal.settings.gmap.auto1map.markers[0].text = null;
}
});

This made clicking on the marker do nothing.
Hope this helps.

nan’s picture

I have solved your problems by applying this patch to file gmap_plugin_style_gmap.inc to version 6.x-1.x-dev

I hope help you

webservant316’s picture

markermode=0 in the gmap macro isn't working for me gmap 6.x-1.x-dev.
I really need this ability also, any help?

webservant316’s picture

webservant316’s picture

Here is a hack that turns popups off for single marker maps which solves my use case for node location maps - http://drupal.org/node/1139088#comment-5956720