Class: Meteo

cercaliagl.control/Meteo


Javascript ES5

const control = new cercaliagl.control.Meteo();
map.addControl(control);

This control obtains POIs and draw it to map. It shows meteo forecast for all localities in Spain and principal towns for the next days. Every day all forecasts are updated.
Spain feeds are provided by AEMET - Agencia Estatal de Metereología
The Rest of cities OpenWeatherMap

new Meteo()

Extends

Methods

closePopup()

Close

disable(option, manual)

Name Type Description
option string

Option to disable. See above

manual boolean (defaults to false)

Whether the feature was disabled manually or not. False by default

enable(option, manual)

Name Type Description
option string

Option to enable. See above

manual boolean (defaults to false)

Whether the feature was enabled manually or not. False by default

Returns cercalia Map object

Returns:
Cercalia map.

getClass(){string} inherited

Get class name.

Returns:
Class name.

getElement(){Element} inherited

Get control HTML Element

Returns:
HTML Element

Get control id.

Returns:
Id.

getMap(){module:maplibre-gl~Map} inherited

Returns mapboxgl Map object

getName(){string|null} inherited

Get control name. Null if control has not defined name.

Returns:
Class name.

Hide control.

Show control.