Index: modules/gmap/API.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/gmap/API.txt,v
retrieving revision 1.3
diff -u -r1.3 API.txt
--- modules/gmap/API.txt	13 Jun 2006 05:53:16 -0000	1.3
+++ modules/gmap/API.txt	29 Jun 2006 19:14:32 -0000
@@ -85,6 +85,8 @@
   align - the alignment of the map 'right', 'left' or 'center'
   control - the control shown on the map 'Large', 'Small', or 'None'
   tcontrol - whether the type control is on the map or not: 'off' or 'on'
+  scontrol - whether the scale control is on the map or not: 'off' or 'on'
+  ocontrol - the 'width,height' of the overview map control
   type - 'Map', 'Hybrid' or 'Satellite'
   drag - 'yes' or 'no' map is draggable.  Default is 'yes'
   markers - an array of marker arrays.  Each marker array is an associative
Index: modules/gmap/gmap.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/gmap/gmap.module,v
retrieving revision 1.36
diff -u -r1.36 gmap.module
--- modules/gmap/gmap.module	21 Jun 2006 06:07:06 -0000	1.36
+++ modules/gmap/gmap.module	29 Jun 2006 19:09:04 -0000
@@ -63,6 +63,8 @@
  *  align - the alignment of the map 'right', 'left' or 'center'
  *  control - the control shown on the map 'Large', 'Small', or 'None'
  *  tcontrol - whether the type control is on the map or not: 'off' or 'on'
+ *  scontrol - whether the scale control is on the map or not: 'off' or 'on'
+ *  ocontrol - width and height of the overview control map: 'width,height'
  *  type - 'Map', 'Hybrid' or 'Satellite'
  *  drag - 'yes' or 'no' map is draggable.  Default is 'yes'
  *  markers - an array of associative arrays for the markers.
@@ -102,6 +104,8 @@
     (!isset($gmap['control'])) ? $gmap['control']=GMAP_CONTROL:NULL;
     (!isset($gmap['type'])) ? $gmap['type']=GMAP_TYPE:NULL;
     (!isset($gmap['tcontrol'])) ? $gmap['tcontrol']='off':NULL;
+    (!isset($gmap['scontrol'])) ? $gmap['scontrol']='off':NULL;
+//    (!isset($gmap['ocontrol'])) ? $gmap['ocontrol']='off':NULL;
     (!isset($gmap['drag'])) ? $gmap['drag']='yes':NULL;
 
     if (!isset($gmap['center'])&& isset($gmap['latlong'])){
@@ -236,6 +240,17 @@
       $outtext .= $gmap['id'].'.addControl(mytypecontrol=new GMapTypeControl());
                 ';
     }
+    if (strtolower($gmap['scontrol'])=='on' || strtolower($gmap['scontrol'])=='yes') {
+      $outtext .= $gmap['id'].'.addControl(myscalecontrol=new GScaleControl());
+                ';
+    }
+    if (isset($gmap['ocontrol']) && strlen($gmap['ocontrol']) > 0) {
+      $osize = explode(",", $gmap['ocontrol']);
+      if (intval($osize[0]) > 0 and intval($osize[1]) > 0) {
+        $outtext .= $gmap['id'].'.addControl(myovcontrol=new GOverviewMapControl(new GSize('.$osize[0].','.$osize[1].')));
+                ';
+      }
+    }
 
     switch (strtolower($gmap['type'])) {
       case 'hybrid':
