Skip to content

@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

ParameterType
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.resolvedThemeResolvedTheme
options.fallbackStylesRecord<ResolvedTheme, string>

Returns

DeckMapStyle