Interface LayerSnapshot

Snapshot of a layer with its current properties.

interface LayerSnapshot {
    filter?: unknown;
    id: string;
    layout?: Record<string, unknown>;
    maxzoom?: number;
    metadata?: Record<string, unknown>;
    minzoom?: number;
    paint?: Record<string, unknown>;
    source: string;
    source-layer?: string;
    type: string;
}

Hierarchy (view full)

Properties

filter?: unknown
id: string
layout?: Record<string, unknown>
maxzoom?: number
metadata?: Record<string, unknown>
minzoom?: number
paint?: Record<string, unknown>
source: string

The source this layer references.

source-layer?: string
type: string