Skip to content

Documentation / @expofp/schema / MaplibreOptions

Type Alias: MaplibreOptions ​

ts
type MaplibreOptions = object;

MapLibre options — the inferred type of MapLibreConfigSchema.

Type Declaration ​

Index Signature ​

ts
[key: string]: unknown

offline? ​

ts
optional offline?: boolean;

The style and everything it references (tiles, sprites, glyphs) are reachable without network — lets the map stay enabled while navigator.onLine is false.

style? ​

ts
optional style?: any;

Inline style object (takes precedence over styleUrl). With no style URL to resolve against, every URL inside it must already be full.

styleUrl? ​

ts
optional styleUrl?: string;

Full, rooted, or relative URL of a MapLibre style document, fetched by MapLibre GL itself. Its internal resources are resolved by the SDK before MapLibre consumes the loaded style.