eegeo.js

L.eeGeo.map.themes

Methods

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

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