跳到主要内容

flywave-mapview.mapviewoptions.theme

Home > @flywave/flywave-mapview > MapViewOptions > theme

MapViewOptions.theme property

The used by Mapview.

This Theme can be one of the following: - string : the URI of the theme file used to style this map - Theme : the Theme object already loaded - Promise<Theme> : the future Theme object - undefined : the theme is not yet set up, but can be set later. Rendering waits until the theme is set.

**Note:** Layers that use a theme do not render any content until that theme is available.

Relative URIs are resolved to full URL using the document's base URL (see: https://www.w3.org/TR/WD-html40-970917/htmlweb.html\#h-5.1.2).

Custom URIs (of theme itself and of resources referenced by theme) may be resolved with help of [[uriResolver]].

Signature:

theme?: string | Theme | FlatTheme | Promise<Theme>;