diff -r gmap.7.x-2.10/gmap_plugin_style_gmap.inc gmap.7.x-2.10_mod/gmap_plugin_style_gmap.inc
45a46
>     $options['center_on_proximityarg_rel'] = array('default' => '');
186c187,196
<         $distance_contextual_filter = $this->view->display_handler->get_handler('argument', 'distance');
---
>         //$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'];
>          $coords = location_views_proximity_get_reference_location($this->view, array(
>           'origin' => 'tied',
>           'relationship' => $this->options['center_on_proximityarg_rel'])
>         );
>         $center_lat = $coords['latitude'];
>         $center_lon = $coords['longitude'];
188,189d197
<         $center_lat = $distance_contextual_filter->value['latitude'];
<         $center_lon = $distance_contextual_filter->value['longitude'];
526a535,583
> 
> 
>       // A whole bunch of code to figure out what relationships are valid for
>       // this item.
>       $relationships = $this->display->handler->get_option('relationships');
>       $relationship_options = array();
> 
>       foreach ($relationships as $relationship) {
>         $relationship_handler = views_get_handler($relationship['table'], $relationship['field'], 'relationship');
> 
>         // If this relationship is valid for this type, add it to the list.
>         $data = views_fetch_data($relationship['table']);
>         $base = $data[$relationship['field']]['relationship']['base'];
>         if ($base == 'location') {
>           $relationship_handler->init($view, $relationship);
>           $relationship_options[$relationship['id']] = $relationship_handler->label();
>         }
>       }
> 
>       if (!empty($relationship_options)) {
>         $relationship_options = array_merge(array('none' => t('Do not use a relationship')), $relationship_options);
>         $rel = empty($this->options['relationship']) ? 'none' : $this->options['relationship'];
>         if (empty($relationship_options[$rel])) {
>           // Pick the first relationship.
>           $rel = key($relationship_options);
>         }
> 
>         $form['center_on_proximityarg_rel'] = array(
>           '#type' => 'select',
>           '#title' => t('Relationship'),
>           '#options' => $relationship_options,
>           '#default_value' => $rel,
>         );
>       }
>       else {
>         $form['center_on_proximityarg_rel'] = array(
>           '#type' => 'value',
>           '#value' => 'none',
>         );
>       }
> 
> 
> 
> 
> 
> 
> 
> 
> 
