How to show temperature instead of wind when loading a map?
-
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 stuffconst { map } = windyAPI; // .map is instance of Leaflet map L.popup() .setLatLng([options.lat, options.lon]) .setContent(options.city) .openOn(map);
}
-
According to this post it wouldn't be possible.
Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
NodeBB & contributors, OSM & contributors, HERE maps