Skip to Content
Air Quality Layout

WeatherBlox - Air Quality Layout

Object
aeris.wxblox.layouts.local.AirQuality

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.

Air Quality Layout

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:

OptionDescriptionDefault
requestType: object ()
request.filterType: string ()airnow
request.pType: string ()
enabledType: boolean ()true
metricType: boolean ()false

Methods

The following methods are supported by instances of this view:

Events

The following events are triggered by instances of this view:

© 2026 Xweather (opens in a new tab)Terms of Service (opens in a new tab)Privacy Policy (opens in a new tab)