Air Quality

AirQualityMeterElement class

google.maps.airQuality.AirQualityMeterElement class
extends HTMLElement
implements AirQualityMeterElementOptions

Displays air quality information for a given location.

<gmp-air-quality-meter
  location="lat,lng">
</gmp-air-quality-meter>
const {AirQualityMeterElement} = await google.maps.importLibrary("airQuality");
AirQualityMeterElement
AirQualityMeterElement([options])
Parameters:
location
attr: location
Input type: LatLngLiteral|LatLng|LatLngAltitudeLiteral|LatLngAltitude optional
Output type: LatLngAltitude optional
Default: null
The location to render the air quality meter for. Normalizes to a LatLngAltitude.
HTML attribute: location="lat,lng"
requestedLanguage
Type: string optional
Default: null
An override for the language to request from the Air Quality API. See the list of supported languages.
Inherited: addEventListener, removeEventListener
gmp-error
function()
Arguments: None
Event fired when the AirQualityMeterElement has an error in loading.
gmp-load
function()
Arguments: None
Event fired when the AirQualityMeterElement has finished loading.

AirQualityMeterElementOptions interface

google.maps.airQuality.AirQualityMeterElementOptions interface

AirQualityMeterElement options.

location
optional
requestedLanguage
optional
Type: string optional