Skip to content

@sqlrooms/deck / resolveDeckMapStyle

Function: resolveDeckMapStyle()

resolveDeckMapStyle(options): DeckMapStyle

Resolves explicit styles, a basemap provider, host defaults, then the fallback.

Parameters

ParameterType
options{ mapStyle?: string; mapPropsMapStyle?: string | StyleSpecification | ImmutableLike<StyleSpecification>; basemapProvider?: DeckMapBasemapProvider; hostDefaultStyles?: Partial<Record<ResolvedTheme, DeckMapStyle>>; resolvedTheme: ResolvedTheme; fallbackStyles: Record<ResolvedTheme, DeckMapStyle>; }
options.mapStyle?string
options.mapPropsMapStyle?string | StyleSpecification | ImmutableLike<StyleSpecification>
options.basemapProvider?DeckMapBasemapProvider
options.hostDefaultStyles?Partial<Record<ResolvedTheme, DeckMapStyle>>
options.resolvedThemeResolvedTheme
options.fallbackStylesRecord<ResolvedTheme, DeckMapStyle>

Returns

DeckMapStyle