title: Setting maximum and minimum bounds using Google Maps API
body: <p>Was wondering if someone could provide an example of how to set maximum and minimum extents using GMaps2? In OpenLayers, here's how it is done:</p>
  
  <pre><code>var point1 = new OpenLayers.Geometry.Point(7, 48);
  point1.transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913")); 
  
  var point2 = new OpenLayers.Geometry.Point(11, 54);
  point2.transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913")); 
  
  var bounds = new OpenLayers.Bounds();
  bounds.extend(point1);
  bounds.extend(point2);
  bounds.toBBOX(); 
  
  map = new OpenLayers.Map("map", {
     maxExtent: bounds, 
     maxResolution:"auto", 
     maxZoomLevel: 8, 
     projection:"EPSG:900913",
     controls: []  
  });
  map.addLayer(new OpenLayers.Layer.OSM.Osmarender("Osmarender"));
  
  map.zoomToMaxExtent();
  //map.zoomToExtent(bounds);
  </code></pre>
  
  <p>What would be the GMaps2 equivalent?</p>