When launching a map, it always show the wind overlay. i would like to set the option or parameter to launch the map with temperature overlay.
This is my current code:
/* --------------- Windy Map API --------------- */
let options = {};
function windyMap(city, cityData) {
console.log("windyMap()");
options = {
// Required: API key
key: "xxxxxxxxxx",
// Put additional console output
verbose: true,
// Optional: Initial state of the map
city: city,
lat: cityData.lat,
lon: cityData.lon,
zoom: 11,
};
windyInit(options, windyCallBack);
}
function windyCallBack(windyAPI) {
console.log("windyCallBack()");
console.log("windyAPI: ", windyAPI);
// windyAPI is ready, and contain 'map', 'store',
// 'picker' and other usefull stuff
const { map } = windyAPI;
// .map is instance of Leaflet map
L.popup()
.setLatLng([options.lat, options.lon])
.setContent(options.city)
.openOn(map);
}