wrld.js

L.Wrld.map.themes

Methods

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

// Set the map theme to a snowy, winter night
map.themes.setTheme(
    L.Wrld.themes.season.Winter,
    L.Wrld.themes.time.Night,
    L.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 L.Wrld.themes.season
time string One of the times defined in L.Wrld.themes.time
weather string One of the weathers defined in L.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 L.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 L.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 L.Wrld.themes.weather
v0.1.1335