--- C:\Documents and Settings\w.ketelaar\Bureaublad\google_earth\google_earth.module	Tue Feb 20 01:12:23 2007
+++ C:\projects\php\BSG\sites\all\modules\google_earth\google_earth.module	Tue Feb 20 17:19:54 2007
@@ -114,6 +114,8 @@
   $google_earth_kml_path = variable_get("google_earth_kml_path", '');
   $google_earth_title = variable_get("google_earth_title", '');
   $google_earth_limit_time = variable_get("google_earth_limit_time", '');
+  $google_earth_icon_scale = variable_get("google_earth_icon_scale", '');
+  $google_earth_label_scale = variable_get("google_earth_label_scale", '');
   $google_earth_dns = variable_get("google_earth_dns", '');
   $google_earth_hide_unresolved = variable_get("google_earth_hide_unresolved", '');
   $google_earth_geoapi_image_path = variable_get("google_earth_geoapi_image_path", '');
@@ -193,7 +195,6 @@
 ";
     for ($i=0;$i<count($data);$i++) {
       $scale = ((2.8 / $data[0]["count"]) * $data[$i]["count"]) + 1.0;
-      $scale = 1.0;
       $img_offset = round((31.0 / $data[0]["count"]) * $data[$i]["count"]) * 32;
       $img_offset = round((31.0 / count($data)) * $i) * 32;
       
@@ -207,7 +208,7 @@
     <visibility>1</visibility>
   <Style>
     <IconStyle>
-      <scale>".$scale."</scale>
+      <scale>".($scale * ($google_earth_icon_scale / 10))."</scale>
       <Icon>
         <href>".$google_earth_geoapi_image_path."</href>
         <x>0</x>
@@ -217,7 +218,7 @@
       </Icon>
     </IconStyle>
     <LabelStyle>
-      <scale>".$scale."</scale>
+      <scale>".($scale * ($google_earth_label_scale / 10))."</scale>
     </LabelStyle>
   </Style>
     <Point>
@@ -357,6 +358,15 @@
     '#default_value' => variable_get('google_earth_icon_scale', 10),
     '#options'       => $scale,
     '#description'   => t('Set the icon scale'),
+    '#multiple'      => FALSE,
+    '#required'      => TRUE,
+  );
+  $form[$group]['google_earth_label_scale'] = array(
+    '#type'          => 'select',
+    '#title'         => t('Label scale'),
+    '#default_value' => variable_get('google_earth_label_scale', 10),
+    '#options'       => $scale,
+    '#description'   => t('Set the label scale'),
     '#multiple'      => FALSE,
     '#required'      => TRUE,
   );
