WeatherBlox - Local Layout
Local LayoutObject
aeris.wxblox.layouts.local.MainData Usage
/places (2)
/observations (5)
/alerts (1)
/threats (1)
/phrases/summary (1)
/forecasts (3)
/observations/summary (2)
/sunmoon (1)
/normals (1)
Raster Maps usage based on size of map and total layers.
/observations (5)
/alerts (1)
/threats (1)
/phrases/summary (1)
/forecasts (3)
/observations/summary (2)
/sunmoon (1)
/normals (1)
Raster Maps usage based on size of map and total layers.
The Main local view is a full-page layout containing multiple individual weather blox containing a variety of current and forecast weather information for a single location.

Examples
Display a full local weather layout view for Seattle, WA:
const view = new aeris.wxblox.layouts.local.Main('#wxblox');
view.load({
p: 'seattle,wa'
});Configuration
The following configuration options are supported by this view:
| Option | Description | Default |
|---|---|---|
obs | Type: object () | |
outlook | Type: object () | |
obsNearby | Type: object () | |
almanac | Type: object () | |
shortterm | Type: object () | |
forecast | Type: object () | |
maps | Type: object () | |
enabled | Type: boolean () | |
metric | Type: boolean () | |
Methods
The following methods are supported by instances of this view:
rendered()show()hide()params()setUnits(:number)units()enabled()setMetric(:boolean)load(:object)refresh()isMetric()Events
The following events are triggered by instances of this view:
renderrender:beforerender:afterload:startload:doneload:errorchange:units