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
- L.Wrld.themes
- Event objects
- WrldPoiApi
- L.Map
- L.Marker
- L.Popup
- L.TileLayer
- L.TileLayer.WMS
- L.TileLayer.Canvas
- L.ImageOverlay
- L.Path
- L.Polyline
- L.MultiPolyline
- L.Polygon
- L.MultiPolygon
- L.Rectangle
- L.Circle
- L.CircleMarker
- L.LayerGroup
- L.FeatureGroup
- L.GeoJson
- L.LatLng
- L.LatLngBounds
- L.Point
- L.Bounds
- L.Icon
- L.DivIcon
- L.Control
- L.Control.zoom
- L.Control.Attribution
- L.Control.Layers
- L.Control.Scale
- Events methods
- Event objects
- L.Class
- L.Browser
- L.Util
- L.Transformation
- L.LineUtil
- L.PolyUtil
- L.DomEvent
- L.DomUtil
- L.PosAnimation
- L.Draggable
- L.IHandler
- L.ILayer
- L.IControl
- L.IProjection
- L.ICRS
- Global Switches
- L.noConflict
- L.version
Themes
Events
Services (Optional)
Leaflet
Themes
L.Wrld.themes
Events
Event objects
Services (Optional)
WrldPoiApi
Leaflet
L.Map
L.Marker
L.Popup
L.TileLayer
L.TileLayer.WMS
L.TileLayer.Canvas
L.ImageOverlay
L.Path
L.Polyline
L.MultiPolyline
L.Polygon
L.MultiPolygon
L.Rectangle
L.Circle
L.CircleMarker
L.LayerGroup
L.FeatureGroup
L.GeoJson
L.LatLng
L.LatLngBounds
L.Point
L.Bounds
L.Icon
L.DivIcon
L.Control
L.Control.zoom
L.Control.Attribution
L.Control.Layers
L.Control.Scale
Events methods
Event objects
L.Class
L.Browser
L.Util
L.Transformation
L.LineUtil
L.PolyUtil
L.DomEvent
L.DomUtil
L.PosAnimation
L.Draggable
L.IHandler
L.ILayer
L.IControl
L.IProjection
L.ICRS
Global Switches
L.noConflict
L.version