--- sites/all/modules/gmap/gmap_plugin_style_gmap.inc.orig	Fri Apr 03 18:34:50 2009
+++ sites/all/modules/gmap/gmap_plugin_style_gmap.inc	Wed Nov 18 18:09:24 2009
@@ -94,6 +94,7 @@
     // 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();
@@ -136,6 +137,7 @@
           );
           $offsets[$markername]++;
         }
+        $this->view->row_index++;
       }
       if (!empty($markers)) { // Don't draw empty maps.
         $map = gmap_parse_macro($this->options['macro']);
