Home > @magiclane/maps-sdk > Conditions > (constructor)
Conditions.(constructor)
Creates a Conditions instance.
Signature:
constructor(type: string, stamp: Date, description: string, daylight: Daylight, params: Parameter[], img?: string | undefined);Parameters
Parameter | Type | Description |
|---|---|---|
type | string | Condition type identifier |
stamp | Date | UTC datetime when the condition applies |
description | string | Condition description translated to current SDK language |
daylight | Daylight state for this condition | |
params | List of weather parameters for this condition | |
img | string | undefined | (Optional) Image representation of the condition (as base64 or data URL) |