Index: gmap_plugin_style_gmap.inc
===================================================================
--- gmap_plugin_style_gmap.inc	(revision 112805)
+++ gmap_plugin_style_gmap.inc	(working copy)
@@ -84,6 +84,14 @@
       return;
     }
 
+    /* patch: gmap_plugin_style_gmap.inc */
+    $map = gmap_parse_macro($this->options['macro']);
+
+    // Determine markermode
+    (!empty($map['markermode'])) ? $markermode = $map['markermode'] : $markermode = $defaults['markermode'];
+
+    // end patch: gmap_plugin_style_gmap.inc */
+
     $lat_field = 'gmap_lat';
     $lon_field = 'gmap_lon';
 
@@ -189,12 +197,11 @@
             $tooltip = $row->$tooltip_field;
           }
 
-          $markers[] = array(
+          $marker = array(
             'latitude' => $lat,
             'longitude' => $lon,
             'markername' => $markername,
             'offset' => $offsets[$markername],
-            'text' => $this->row_plugin->render($row),
             'opts' => array(
               'title' => $tooltip,
               'highlight' => (!empty($highlight_nid) && !empty($row_nid) && $highlight_nid == $row_nid) ? 1 : 0,
@@ -202,12 +209,24 @@
             ),
           );
 
+          /* patch: gmap_plugin_style_gmap.inc */
+          switch($markermode) {
+              case 1:
+                  // opening tooltips with information
+                  $marker['text'] = $this->row_plugin->render($row);
+                  break;
+              case 2:
+                  // direct link to the page node
+                  $marker['link'] = url('node/'. $row->nid);
+                  break;
+          }
+          /* end patch: gmap_plugin_style_gmap.inc */
+
+          $markers[] = $marker;
           $offsets[$markername]++;
         }
       }
-      if (!empty($markers)) { // Don't draw empty maps.
-        $map = gmap_parse_macro($this->options['macro']);
-
+      if (!empty($markers) && !empty($map)) { // Don't draw empty maps.
         // If center lon/lat are not empty they are used to center map
         if (!empty($center_lon) && !empty($center_lat)) {
           $map['longitude'] = $center_lon;
