Interface RasterSourceToMapLibreMap

Minimal peer-injected MapLibre surface used by the raster mount.

interface RasterSourceToMapLibreMap {
    addLayer(layer: unknown, beforeId?: string): void;
    addSource(id: string, source: unknown): void;
    getLayer(id: string): unknown;
    getSource(id: string): unknown;
    removeLayer(id: string): void;
    removeSource(id: string): void;
}

Methods