Layers are used in styles to add styling rules to specific subsets of data. (For example, if you wanted all the rivers in your map to be pink, you would create a layer in your style for it.) Layers contain both a reference to the data for which they're defining a style as well as the styling rules to be applied.

Read more about layers in the Mapbox Style Specification.

Was this page helpful?