Index: location.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/location/location.admin.inc,v
retrieving revision 1.17.2.3
diff -b -B -u -r1.17.2.3 location.admin.inc
--- location.admin.inc	17 Apr 2009 19:12:54 -0000	1.17.2.3
+++ location.admin.inc	15 Apr 2010 12:14:59 -0000
@@ -64,6 +64,14 @@
     '#description' => t('If you are going to be importing locations in bulk directly into the database, you may wish to enable JIT geocoding and load the locations with source set to 4 (LOCATION_LATLON_JIT_GEOCODING). The system will automatically geocode locations as they are loaded.'),
   );
 
+  $form['location_maplink_external'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Open map link in new window'),
+    '#default_value' => variable_get('location_maplink_external', 0),
+    '#description' => t('Select this if you want the map link to open in a separate window'),
+    '#return_value' => 1,
+  );
+
   return system_settings_form($form);
 }
 
Index: location.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/location/location.inc,v
retrieving revision 1.95.2.5
diff -b -B -u -r1.95.2.5 location.inc
--- location.inc	28 Mar 2010 21:55:00 -0000	1.95.2.5
+++ location.inc	15 Apr 2010 12:14:59 -0000
@@ -53,7 +53,7 @@
     $link_func = 'location_map_link_'. $location['country'] .'_'. $mapper;
     if (function_exists($link_func)) {
       if ($link = $link_func($location)) {
-        $links[] = '<a href="'. $link .'">'. $providers[$mapper]['name'] .'</a>';
+        $links[] = '<a href="'. $link .'"'. (variable_get('location_maplink_external', 0) ? ' target="_blank"' : '') .'>'. $providers[$mapper]['name'] .'</a>';
       }
     }
   }
