title: Mapbox GL JS: Control max zoom with geolocation control?
body: <p>I am using Mapbox GL JS v0.32.1 and I have <a href="https://www.mapbox.com/mapbox-gl-js/example/locate-user/" rel="nofollow noreferrer">a geolocation control</a> on my map. </p>
  
  <p>I would like to make it so that the maximum zoom when the user geolocates is 8, so that the map zooms to the user's approximate location, not street location. </p>
  
  <p>According to <a href="https://www.mapbox.com/mapbox-gl-js/api/#GeolocateControl.event:geolocate" rel="nofollow noreferrer">the documentation</a> there should be a <code>geolocate</code> event available, but this isn't working for me:</p>
  
  <pre><code>var geoLocate = map.addControl(new mapboxgl.GeolocateControl());
  geoLocate.on('geolocate', function(e) {
      console.log('geolocated');
      map.setZoom(8);
  })
  </code></pre>
  
  <p>Geolocating (in Chrome at least) still zooms to the maximum zoom level available, and I don't see a console log message when it happens. </p>