--- layout: example category: example title: Fit to the bounds of a LineString description: "Get the bounds of a LineString by passing it's first coordinates to mapboxgl.LngLatBounds and chaining extend to include the last coordinates." tags: - user-interaction ---