title: Google maps how to calculate south west and north east bound for overlay
body: <p>While displaying an overlay over google maps using the API. I am googling for last three days how to calculate the South West and North east bounds for an overlay of size 100X100. I found millions of examples but the bounds were written hard coded.</p>
  
  <p>My input is Center Latitude and Longitude and a 100x100 image.</p>
  
  <p>The code I found is:</p>
  
  <pre><code>function initMap() {
    var map = new google.maps.Map(document.getElementById('map'), {
      zoom: 11,
      center: {lat: 62.323907, lng: -150.109291},
      mapTypeId: google.maps.MapTypeId.SATELLITE
    });
  
    var bounds = new google.maps.LatLngBounds(
        new google.maps.LatLng(SE),
        new google.maps.LatLng(NE));
  
    // The photograph is courtesy of the U.S. Geological Survey.
    var srcImage = 'https://developers.google.com/maps/documentation/javascript/';
    srcImage += 'examples/full/images/talkeetna.png';
  
    overlay = new USGSOverlay(bounds, srcImage, map);
  }
  </code></pre>
  
  <p>I am woundering how these bounds were calculated?</p>
  
  <pre><code> SE and NE
  </code></pre>