interface ApplyStyleOptions {
    layers?: string[];
    source?: string;
    updateSource?: boolean;
}

Properties

layers?: string[]

Layers. If no source is provided, the layers with the provided ids will be used from the style's layers array. All layers need to use the same source.

source?: string

Source. Default is '', which causes the first source in the style to be used.

updateSource?: boolean

Update or create vector (tile) layer source with parameters specified for the source in the mapbox style definition.