Skip to main content

flywave-mapview.themeloadoptions

Home > @flywave/flywave-mapview > ThemeLoadOptions

ThemeLoadOptions interface

Options to customize loading process.

Signature:

export interface ThemeLoadOptions 

Properties

Property

Modifiers

Type

Description

logger?

ISimpleChannel

(Optional) Custom logging channel on which diagnostics and warnings will be reported.

If not specified, ThemeLoader.load() will log to console.

maxInheritanceDepth?

number

(Optional) Maximum recursion depth when resolving base themes through [s extends property.

[[DEFAULT_MAX_THEME_INTHERITANCE_DEPTH]]

resolveDefinitions?

boolean

(Optional) Whether to resolve ref expressions in definition and styles elements.

false, as datasources resolve definitions in [[StyleSetEvaluator]].

resolveIncludeUris?

boolean

(Optional) Resolve the URIs of inherited themes (using extends feature). If true, [[uriResolver]] will be used to resolve the URI true

resolveResourceUris?

boolean

(Optional) Resolve the URIs to resources like fonts, icons, ... If true, [[uriResolver]] will be used to resolve the URI true

signal?

AbortSignal

(Optional) An AbortSignal object instance; allows you to communicate with a loading process (including fetch requests) request and abort it if desired via an AbortController.

Modeled after Web APIs fetchs init.signal.

uriResolver?

UriResolver

(Optional) Resolve asset URIs referenced in Theme assets using this resolver.