<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to show temperature instead of wind when loading a map?]]></title><description><![CDATA[<p dir="auto">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.<br />
This is my current code:</p>
<p dir="auto">/* --------------- Windy Map API --------------- */<br />
let options = {};<br />
function windyMap(city, cityData) {<br />
console.log("windyMap()");<br />
options = {<br />
// Required: API key<br />
key: "xxxxxxxxxx",</p>
<pre><code>  // 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);
</code></pre>
<p dir="auto">}</p>
<p dir="auto">function windyCallBack(windyAPI) {<br />
console.log("windyCallBack()");<br />
console.log("windyAPI: ", windyAPI);<br />
// windyAPI is ready, and contain 'map', 'store',<br />
// 'picker' and other usefull stuff</p>
<pre><code>const { map } = windyAPI;
// .map is instance of Leaflet map

L.popup()
  .setLatLng([options.lat, options.lon])
  .setContent(options.city)
  .openOn(map);
</code></pre>
<p dir="auto">}</p>
]]></description><link>https://community.windy.com/topic/12109/how-to-show-temperature-instead-of-wind-when-loading-a-map</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Sep 2026 20:05:40 GMT</lastBuildDate><atom:link href="https://community.windy.com/topic/12109.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 May 2020 19:04:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to show temperature instead of wind when loading a map? on Sat, 09 May 2020 20:35:12 GMT]]></title><description><![CDATA[<p dir="auto">According to <a href="https://community.windy.com/topic/9422/how-to-change-default-start-up-layer-on-windy">this post</a> it wouldn't be possible.</p>
]]></description><link>https://community.windy.com/post/45928</link><guid isPermaLink="true">https://community.windy.com/post/45928</guid><dc:creator><![CDATA[vsinceac]]></dc:creator><pubDate>Sat, 09 May 2020 20:35:12 GMT</pubDate></item></channel></rss>