--- location.admin.inc.orig	2010-03-24 15:57:29.000000000 +0100
+++ location.admin.inc	2010-03-24 16:02:21.000000000 +0100
@@ -64,6 +64,15 @@
     '#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_map_link_target'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Target attribute of map link'),
+    '#size' => 20,
+    '#maxlength' => 100,
+    '#default_value' => variable_get('location_map_link_target', ''),
+    '#description' => t('Where to open the map link. Will be used as value of the <em>target</em> attribut in the <em>&lt;a&gt;</em> tag.'),
+  );
+
   return system_settings_form($form);
 }
 
--- location.inc.orig	2010-03-24 14:54:56.000000000 +0100
+++ location.inc	2010-03-24 15:57:07.000000000 +0100
@@ -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_map_link_target', '') ? '' : 'target="' . variable_get('location_map_link_target', '') . '"') . '>'. $providers[$mapper]['name'] .'</a>';
       }
     }
   }
