Skip to content

Documentation / @expofp/schema / MapThemeSchema

Variable: MapThemeSchema

ts
const MapThemeSchema: ZodEnum<MapTheme>;

Which basemap palette the map view uses.

The drawing decides, not the visitor and not the host: the Designer writes the palette it was authored for into __fpGeo.properties.config.style (FpGeoConfigSchema), and when that is unset the SDK falls back to the lightness of the drawing's __fpSettings.backgroundColor. Those two are the only sources — the palette is not a config field.

Resolved once when the map mounts. Only the basemap responds to it today, and an explicit maplibre.style / maplibre.styleUrl is a complete style document that wins over the theme entirely.