Style a GeoJSON Line layer (polyline helper)
This example demonstrates the process of incorporating and customizing a GeoJSON line layer on the map by utilizing the polyline layer helper. In this specific case, we will generate a line that is purple and has a border in gray. You can access the sample data by downloading the Blue Hills sample data.
Related examples
An extension of MapLibre GL JS