title: Google Maps: redefine center point, fit bounds to specific area
body: <p>Here's a real challenge I'm running into using the Google Maps API. I've got an app that is full-screen, there's a Google map that fills the entire background. Some of the UI chrome for this app covers parts of the maps, so, in effect, the entire map is not always visible.</p>
  
  <p>Instead, we have a "primary" visible area, and a "partially" visible area, like so:</p>
  
  <p><img src="https://i.stack.imgur.com/IofDZ.jpg" alt="map example"></p>
  
  <p>Here are my questions:</p>
  
  <p>Normally if you want to center something in the view you call <code>map.setCenter(latLng)</code> This puts the given latLng in the exact center of the map canvas. However, in my case, I'd like to put the given latLng not in the exact center of the canvas, but in the center of the fully visible portion of the canvas.</p>
  
  <p>I haven't been able to find any documentation of a way to set a geographic point to anything other than the exact center of the canvas. Does anyone know if this is possible?</p>
  
  <p>Likewise, if you want to zoom the map so it fits a number of points, you can pass all of these latLngs to a bounds object, on each one calling <code>bounds.extend(latLng)</code>, and then <code>map.fitBounds(bounds)</code>.</p>
  
  <p>However, this will fit the map so that the points are displayed within the entire map canvas. Is it possible to make them fit to a specific portion of the canvas instead?</p>
  
  <p>Thanks for any insight here.</p>