title: Google Maps set zoom if only 1 marker
body: <p>I have a script that gets map markers from an object and then fits the markers to the bounds. This works fin except that when the object only contains 1 marker it zooms in way to far. Any suggestions on how I can set this so that if there is only on marker to set zoom to "x";</p>
  
  <pre><code>var results = [
        ['&lt;!-- TMPL_VAR street_no --&gt; &lt;!-- TMPL_VAR street --&gt; &lt;!-- TMPL_VAR city --&gt;, &lt;!-- TMPL_VAR state --&gt; &lt;!-- TMPL_VAR zip --&gt;',&lt;!-- TMPL_VAR latitude --&gt;,&lt;!-- TMPL_VAR longitude --&gt;]
    ];
  var map;
  function initMap() {
    bounds  = new google.maps.LatLngBounds();
    map = new google.maps.Map(document.getElementById('map-canvas'), {
    });
    setMarkers(map);
  }
  function setMarkers(map) {
    var bounds = new google.maps.LatLngBounds();
    for (var i = 0; i &lt; results.length; i++) {
      result = results[i];
      position = new google.maps.LatLng(result[1], result[2]);
      marker = new google.maps.Marker({
        position: {lat: result[1], lng: result[2]},
        map: map,
        title: result[0]
      });
      bounds.extend(position)
    }
    map.fitBounds(bounds);
  }
  </code></pre>