--- gmap_plugin_style_gmap.inc.orig	2010-06-23 14:49:04.631571498 +0200
+++ gmap_plugin_style_gmap.inc	2010-06-23 14:49:30.842574148 +0200
@@ -90,6 +90,7 @@ class gmap_plugin_style_gmap extends vie
     // Render each group separately and concatenate.  Plugins may override this
     // method if they wish some other way of handling grouping.
     $output = '';
+    $this->view->row_index = 0;
     foreach ($sets as $title => $records) {
       $markers = array();
       $offsets = array();
@@ -132,6 +133,7 @@ class gmap_plugin_style_gmap extends vie
           );
           $offsets[$markername]++;
         }
+        $this->view->row_index++;
       }
       if (!empty($markers)) { // Don't draw empty maps.
         $map = gmap_parse_macro($this->options['macro']);
