Interface MapBinding

Formalizes the HonuaMap.addSource / addLayer binding. A MapBinding names the source that backs one or more rendering layers and carries an optional partial style block. MapBinding arrays serialize to MapPackage.sourceBindings + MapPackage.mapSpec on the server side.

interface MapBinding {
    layerIds: readonly string[];
    maxzoom?: number;
    minzoom?: number;
    sourceId: string;
    style?: Record<string, unknown>;
}

Properties

layerIds: readonly string[]

Layer ids consuming the source.

maxzoom?: number

Optional maximum zoom for visibility (forwarded to layer specs).

minzoom?: number

Optional minimum zoom for visibility (forwarded to layer specs).

sourceId: string

ID of the Source whose data backs the layers.

style?: Record<string, unknown>

Style overrides; merged with the source-driven defaults.