Wrld.map.themes

Methods

map.themes.setTheme(season, time, weather)

// Set the map theme to a snowy, winter night
map.themes.setTheme(
    Wrld.themes.season.Winter,
    Wrld.themes.time.Night,
    Wrld.themes.weather.Snowy
);

Set the season, time, and weather displayed on the map.

Argument Type Description
season string One of the seasons defined in Wrld.themes.season.
time string One of the times defined in Wrld.themes.time.
weather string One of the weathers defined in Wrld.themes.weather.

map.themes.setSeason(season)

Set the current season displayed on the map.

Argument Type Description
season string One of the seasons defined in Wrld.themes.season.

map.themes.setTime(time)

Set the current time of day displayed on the map.

Argument Type Description
time string One of the times defined in Wrld.themes.time.

map.themes.setWeather(weather)

Set the current weather displayed on the map.

Argument Type Description
weather string One of the weathers defined in Wrld.themes.weather.
v1.1.0
Props Wrld.Prop
Themes Wrld.themes
Heatmaps Wrld.Heatmap
Events Event objects
Services (Optional) WrldPoiApi