Appearance
Function: setTheme()
ts
function setTheme(themeOrId): Promise<Theme>;Apply a theme to the map.
Accepts built-in aliases ("light" → "mapstedLight", "dark" → "mapstedDark") or any literal theme id returned by getThemes().
Resolves with the applied Theme once the iframe ACKs. Throws MAPSTED-1085 if the iframe reports the theme is unknown or unavailable for the current property.
Parameters
| Parameter | Type |
|---|---|
themeOrId | string |
Returns
Promise<Theme>