title: Set zoom when showing map from geojson in Leaflet
body: <p>I'm using <a href="http://leafletjs.com" rel="nofollow">Leaflet.js</a> to show geojson files in a map and I have the following code:</p>
  
  <pre><code>// Set the map and the geojson as pointed in the tutorials
  var geojsonLayer = new L.GeoJSON(null, {
      onEachFeature: function (feature, layer) {
          if (feature.properties) {
              var popupString = '&lt;div class="popup"&gt;';
              for (var k in feature.properties) {
                  var v = feature.properties[k];
                  popupString += k + ': ' + v + '&lt;br /&gt;';
              }
              popupString += '&lt;/div&gt;';
              layer.bindPopup(popupString, {
                  maxHeight: 200
              });
          }
      }
  });
  map.addLayer(geojsonLayer);
  
  L.control.layers({'Road': road_layer, 'Satellite': satellite_layer}, {'GeoJSON': geojsonLayer}).addTo(map);
  //...
  // Load file and get its content in the data var
  //...
  geojsonLayer.addData(JSON.parse(data));
  map.fitBounds(geojsonLayer.getBounds());
  </code></pre>
  
  <p>But when the geojson file has only a point, the map zooms to much. I would like to set the zoom manually but I can't figure out how.  </p>
  
  <p>Thanks in advance</p>