Right now with scattermapbox we have to manually set center and zoom but it would be great to have a flag that uses the built-in Mapbox machine to fit bounds. Something like layout.mapbox.fitbounds: true | false
https://www.mapbox.com/mapbox-gl-js/example/fitbounds/