diff --git a/gmap_plugin_style_gmap.inc b/gmap_plugin_style_gmap.inc
index fffe4fb..713d74e 100755
--- a/gmap_plugin_style_gmap.inc
+++ b/gmap_plugin_style_gmap.inc
@@ -39,6 +39,8 @@ class gmap_plugin_style_gmap extends views_plugin_style {
     $options['center_on_nodearg'] = array('default' => 0);
     $options['center_on_nodearg_arg'] = array('default' => '');
 
+    $options['center_on_proximityarg'] = array('default' => 0);
+
     $options['highlight_nodearg'] = array('default' => 0);
     $options['highlight_nodearg_arg'] = array('default' => '');
     $options['highlight_nodearg_color'] = array('default' => '#FF0000');
@@ -167,6 +169,14 @@ class gmap_plugin_style_gmap extends views_plugin_style {
       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();
       }
+      // Use the distance contextual filter argument to center the map
+      if ($this->options['center_on_proximityarg'] && $this->options['datasource'] == 'location' && module_exists('location')) {
+        // Just grab this straight from the view
+        $distance_contextual_filter = $this->view->display_handler->get_handler('argument', 'distance');
+
+        $center_lat = $distance_contextual_filter->value['latitude'];
+        $center_lon = $distance_contextual_filter->value['longitude'];
+      }
       if ($this->options['highlight_nodearg'] && $nodehandler = $this->view->display_handler->get_handler('argument', $this->options['highlight_nodearg_arg'])) {
         $highlight_nid = $nodehandler->get_value();
       }
@@ -451,6 +461,15 @@ class gmap_plugin_style_gmap extends views_plugin_style {
       '#dependency' => array('edit-style-options-center-on-nodearg' => array(TRUE)),
     );
 
+    if (module_exists('location')) {
+      $form['center_on_proximityarg'] = array(
+        '#type' => 'checkbox',
+        '#title' => t('Center on proximity contextual filter'),
+        '#default_value' => $this->options['center_on_proximityarg'],
+        '#description' => t('Note: The view must contain a "Location: Distance / Proximity" contextual filter'),
+      );
+    }
+
     $form['highlight_nodearg'] = array(
       '#type' => 'checkbox',
       '#title' => t('Highlight marker for node argument'),
