Skip to content

Documentation / @expofp/schema / MapLibreConfigSchema

Variable: MapLibreConfigSchema

ts
const MapLibreConfigSchema: ZodObject<MaplibreOptions>;

MapLibre GL JS integration settings — the config's maplibre field.

The style document is MapLibre's, not ours. Offline archives store the style URL and the style's internal URLs (sprite, glyphs, tile sources) relative to their containing documents, so the archive stays relocatable; see the offline package's generateOfflineMapData.

MapLibre itself, though, requires those internal URLs to be fully absolute (scheme + host) and rejects rooted/relative ones — and only the runtime knows the serving origin. So the SDK absolutizes string-URL styles' internal resources against the style's own URL through MapLibre's transformStyle hook at load time (createStyleTransform in the floorplan's Maplibre wrapper).