? aliased.patch
Index: simplemap.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simplemap/simplemap.admin.inc,v
retrieving revision 1.1
diff -u -p -r1.1 simplemap.admin.inc
--- simplemap.admin.inc	7 Nov 2009 14:47:54 -0000	1.1
+++ simplemap.admin.inc	31 Dec 2010 08:41:19 -0000
@@ -83,12 +83,12 @@ function simplemap_settings() {
     
   } 
   else {
-
-    $form['simplemap_googleapikey'] = array(
+    $domain_parts=array_slice(explode(".",$_SERVER['HTTP_HOST']),-2);
+    $form['simplemap_googleapikey_'.join("_",$domain_parts)] = array(
       '#type' => 'textfield',
       '#title' => t('Google Maps API Key'),
-      '#description' => t('Please provide a valid google api key.  You can get a key by visiting <a href="@googlemappath">Google maps API sign up page</a>', array('@googlemappath'=>url('http://code.google.com/apis/maps/signup.html'))),
-      '#default_value' => variable_get('simplemap_googleapikey', ''),
+      '#description' => t('Please provide a valid google api key.  You can get a key by visiting <a href="@googlemappath">Google maps API sign up page</a>', array('@googlemappath'=>url('http://code.google.com/apis/maps/signup.html')))."<br/>".t("<b>This key is for use on @domain</b>",array("@domain"=>join(".",$domain_parts))),
+      '#default_value' => variable_get('simplemap_googleapikey_'.join("_",$domain_parts),''),
     );
     return system_settings_form($form);
     
Index: simplemap.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simplemap/simplemap.module,v
retrieving revision 1.1
diff -u -p -r1.1 simplemap.module
--- simplemap.module	7 Nov 2009 14:47:54 -0000	1.1
+++ simplemap.module	31 Dec 2010 08:41:19 -0000
@@ -260,7 +260,7 @@ function simplemap_get_api_key() {
     }
   } 
   else {
-    $key = variable_get('simplemap_googleapikey', '');
+    $key = variable_get('simplemap_googleapikey_'.join("_",array_slice(explode(".",$_SERVER['HTTP_HOST']),-2)), '');
     if (empty($key)) {
       drupal_set_message('You must set a Google Maps API key in the Simplemap settings before you can add map blocks.','error');
     }
