I\'m using Mapbox GL JS v0.14.2 and I\'ve searched high and low through the documentation and very little is clear about this.
If you use the standard JS API, it\'s
If you want to fit map to markers, you can create bounds that contains all markers.
var bounds = new mapboxgl.LngLatBounds(); markers.features.forEach(function(feature) { bounds.extend(feature.geometry.coordinates); }); map.fitBounds(bounds);