title: How to use Viewport from Google Geocoder in Leaflet JS?
body: <p>I have successfully set up a Leaflet JS map that uses the Google maps geocoder to pan to a geocoded address.  But I am also trying to use "map.fitBounds" to get the appropriate zoom level from the Viewport, but it does not seem to be working.  The code I am using is:</p>
  
  <pre><code>map.panTo([results[0].geometry.location.lat(),results[0].geometry.location.lng()]);
     map.fitBounds([[results[0].geometry.viewport.southwest.lat(), results[0].geometry.viewport.southwest.lng()],[results[0].geometry.viewport.northeast.lat(), results[0].geometry.viewport.northeast.lng()]]);
  </code></pre>
  
  <p>See example here: <a href="http://chrismccreath.hostzi.com/geocode_test.html" rel="nofollow">http://chrismccreath.hostzi.com/geocode_test.html</a></p>
  
  <p>How can I fix it so that it zooms to the appropriate viewport returned by the google maps geocoder result?</p>