Skip to content

Function: setFeatureFlags()

ts
function setFeatureFlags(flags): Promise<void>;

Toggle map feature flags, enabling or disabling optional UI/behaviour.

Only the flags present in the object are changed; omitted flags retain their current state.

Parameters

ParameterTypeDescription
flagsPartial<FeatureFlagSet>A partial FeatureFlagSet mapping flag names to booleans. Required; must be a plain object (not null or an array).

Returns

Promise<void>

a promise that resolves once the flags are sent.

Throws

MAPSTED-1083 when flags is null / undefined, an array, or not an object.

Throws

MAPSTED-1090 when the API is not READY.