title: Google maps API V3 method fitBounds()
body: <p>I have this code that renders a map.</p>
  
  <pre><code>function initialize() {
      var myOptions = {
        center: new google.maps.LatLng(45.4555729, 9.169236),
        zoom: 13,
        mapTypeId: google.maps.MapTypeId.ROADMAP,
  
  panControl: true,
  mapTypeControl: false,
  panControlOptions: {
              position: google.maps.ControlPosition.RIGHT_CENTER
          },
  zoomControl: true,
  zoomControlOptions: {
      style: google.maps.ZoomControlStyle.LARGE,
      position: google.maps.ControlPosition.RIGHT_CENTER
  },
  scaleControl: false,
  streetViewControl: false,
  streetViewControlOptions: {
      position: google.maps.ControlPosition.RIGHT_CENTER
              }
          };
      var map = new google.maps.Map(document.getElementById("mapCanvas"),
          myOptions);
  
  
  
  var Item_1 = new google.maps.LatLng(45.5983128 ,8.9172776);
  
  var myPlace = new google.maps.LatLng(45.4555729, 9.169236);
  
  var marker = new google.maps.Marker({
      position: Item_1, 
      map: map});
  
  var marker = new google.maps.Marker({
      position: myPlace, 
      map: map});
  
  var bounds = new google.maps.LatLngBounds(myPlace, Item_1);
  map.fitBounds(bounds);
  
      }
  </code></pre>
  
  <p>Even if the two points are separated from 25 km I get this result:</p>
  
  <p><img src="https://i.stack.imgur.com/gPOTO.png" alt="enter image description here"></p>
  
  <p>While I would like to render a higher level zoom.</p>
  
  <p>Like this</p>
  
  <p><img src="https://i.stack.imgur.com/Kw4v0.jpg" alt="enter image description here"></p>
  
  <p>I use the method <strong>fitBounds()</strong></p>
  
  <pre><code>    var bounds = new google.maps.LatLngBounds(myPlace, Item_1);
      map.fitBounds(bounds);
  </code></pre>
  
  <p>Thanks for your support</p>