source layer | Help (original) (raw)

On this page

Additional Developer Resources

A source layer is an individual layer of data within a vector source. A vector source can have multiple source layers.

A source layer differs from a style layer, which is used to add styling rules to a specific subset of data in a map style.

Find a source layer's name

There are a few places you can find the name of a source layer:

A map's style document

In a map's style document, each layer with a type of vector has a source-layer property that contains the source layer's name. The following Mapbox GL JS style layer has a source layer named waterway:

Tileset explorer

You can find a source layer's name in the Mapbox Studio Tileset explorer:

  1. Visit your Tilesets page.
  2. Click the name of one of your tilesets to open Tileset explorer.
  3. You will see the tileset's source layers listed under menu Vector layers.

Mapbox Studio style editor

In the Select data tab

You can find the name of source layers used in a style using the Select data tab:

  1. Open the style in the Mapbox Studio style editor.
  2. Click on the name of the layer in the layer list.
  3. Switch to the Select data tab.
  4. Find the source layer listed below the name of the tileset source.

In the Layer overview

You can find the name of source layers used in a style using the Layer overview option:

  1. Open the style in the Mapbox Studio style editor.
  2. Click on the Settings button in the top toolbar.
  3. Scroll down to Layer overview section.

Name a source layer

Your ability to name a source layer depends on the tool you use to prepare your data and upload it to Mapbox.


Related resources:

Additional Developer Resources