Skip to main content

flywave-mapview.datasource.settheme

Home > @flywave/flywave-mapview > DataSource > setTheme

DataSource.setTheme() method

Apply the to this data source.

If DataSource depends on a styleSet defined by this theme or languages, it must update its tiles' geometry.

Signature:

setTheme(theme: Theme | FlatTheme): Promise<void>;

Parameters

Parameter

Type

Description

theme

Theme | FlatTheme

The Theme to be applied

Returns:



Promise&lt;void&gt;