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
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | patch_gmap_plugin_style_gmap_ver_6_x_1_x-dev.patch | 2.09 KB | nan |
Comments
Comment #1
kvick commentedSame issue here.
Comment #2
kvick commentedI 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.
Comment #3
nan commentedI 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
Comment #4
webservant316 commentedmarkermode=0 in the gmap macro isn't working for me gmap 6.x-1.x-dev.
I really need this ability also, any help?
Comment #5
webservant316 commentedrelated posted here - http://drupal.org/node/834688#comment-5928940
Comment #6
webservant316 commentedHere 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