@sqlrooms/deck / resolveDeckMapStyle
Function: resolveDeckMapStyle()
resolveDeckMapStyle(
options):DeckMapStyle
Resolves the effective map style from explicit config, map props, host defaults, and finally the package fallback for the active theme.
Parameters
| Parameter | Type |
|---|---|
options | { mapStyle?: string; mapPropsMapStyle?: string | StyleSpecification | ImmutableLike<StyleSpecification>; hostDefaultStyles?: Partial<Record<ResolvedTheme, DeckMapStyle>>; resolvedTheme: ResolvedTheme; fallbackStyles: Record<ResolvedTheme, string>; } |
options.mapStyle? | string |
options.mapPropsMapStyle? | string | StyleSpecification | ImmutableLike<StyleSpecification> |
options.hostDefaultStyles? | Partial<Record<ResolvedTheme, DeckMapStyle>> |
options.resolvedTheme | ResolvedTheme |
options.fallbackStyles | Record<ResolvedTheme, string> |