WeatherBlox - Air Quality Layout
Air Quality LayoutObject
aeris.wxblox.layouts.local.AirQualityData Usage
The AirQuality local layout provides a full-page layout containing AQI data ranging from current, hourly forecast, and nearby stations. Additionally, this layout includes a Leaflet map with point data for nearby AQI stations.

Examples
Display current Air Quality data for Shanghai, CN
const view = new aeris.wxblox.layouts.local.AirQuality('#wxblox', {
request: {
p: 'shanghai,cn'
}
});
view.load();Configuration
The following configuration options are supported by this view:
| Option | Description | Default |
|---|---|---|
request | Type: object () | |
request.filter | Type: string () | |
request.p | Type: string () | |
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