Index: gmap_plugin_style_gmap.inc
===================================================================
--- gmap_plugin_style_gmap.inc	(revision 166)
+++ gmap_plugin_style_gmap.inc	(working copy)
@@ -132,7 +132,7 @@
       $highlight_nid = null;
 
       // We search nid argument used to center map
-      if ($this->options['center_on_nodearg'] && $nodehandler = $this->view->display_handler->get_handler('argument', $this->options['center_on_nodearg_arg'])) {
+      if ($this->options['center_on_nodearg'] && $nodehandler = $this->view->display_handler->get_handler('argument', $this->options['center_on_nodearg_arg'])) { 
         $center_nid = $nodehandler->get_value();
       }
       if ($this->options['highlight_nodearg'] && $nodehandler = $this->view->display_handler->get_handler('argument', $this->options['highlight_nodearg_arg'])) {
@@ -205,6 +205,18 @@
           $offsets[$markername]++;
         }
       }
+      
+      // the specified centering nid must not be arbitrary and not part of the rows
+      if(!$center_lon && !$center_lat && $center_nid){
+        $arbitrary_centering_node = node_load($center_nid);
+        if($arbitrary_centering_node){
+          if(!empty($arbitrary_centering_node->locations)){
+            $center_lat = $arbitrary_centering_node->locations[0]['latitude'];
+            $center_lon = $arbitrary_centering_node->locations[0]['longitude'];
+          }
+        }
+      }
+      
       if (!empty($markers)) { // Don't draw empty maps.
         $map = gmap_parse_macro($this->options['macro']);
 
