Skip to content

Function: setLanguage()

ts
function setLanguage(code): Promise<void>;

Set the map display language. Validates BCP 47 format. State is updated after a successful postMessage send.

Parameters

ParameterType
codestring

Returns

Promise<void>