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([options])
Parameters:
location
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
Create a Mobile Website
View Site in Mobile | Classic
Share by: