A layer configuration binding a Connector to one or more Sources.
Each layer represents a distinct storage backend. Within a layer, all sources share the same connector for byte-range reads.
// Single source per connectorconst layer: TileServerLayer = { connector: new HttpConnector(), sources: { name: 'parcels', path: 'https://cdn.example.com/parcels.fgb' },};// Multiple sources sharing one connectorconst multiLayer: TileServerLayer = { connector: new LocalConnector(), sources: [ { name: 'water', path: './data/water.fgb' }, { name: 'land', path: './data/land.fgb' }, ],}; Copy
// Single source per connectorconst layer: TileServerLayer = { connector: new HttpConnector(), sources: { name: 'parcels', path: 'https://cdn.example.com/parcels.fgb' },};// Multiple sources sharing one connectorconst multiLayer: TileServerLayer = { connector: new LocalConnector(), sources: [ { name: 'water', path: './data/water.fgb' }, { name: 'land', path: './data/land.fgb' }, ],};
Byte-range reader used to access all sources in this layer.
One or more FGB source descriptors served through this connector.
A layer configuration binding a Connector to one or more Sources.
Each layer represents a distinct storage backend. Within a layer, all sources share the same connector for byte-range reads.
Example