<?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[adding zoomed-in layers in api v4]]></title><description><![CDATA[<p dir="auto">Dear Windy team,</p>
<p dir="auto">Just FYI I've been waiting a week or so to post this because I thought it might possibly be fixed in updates, or perhaps be redundant with other people's questions or preliminary bug reports(?), but when I try to add zoomed-in layers in API v4, via either (for example):</p>
<pre><code>  L.tileLayer('http://b.tile.openstreetmap.org/{z}/{x}/{y}.png', {
    attribution: 'Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, ',
    maxZoom: 17,
    minZoom: 12
  }).addTo(map);
</code></pre>
<p dir="auto">or within the API initialization itself:</p>
<pre><code>const options = {

            // Required: API key
            key: 'OznecmCq1hd17S4F3e5rtotajmkUBw2D',

            // Put additional console output
            verbose: true,

            // Optional: Initial state of the map
      lat:   48.46,
      lon: -123.31,
      zoom: 11,
      layers: [
        L.tileLayer('http://b.tile.openstreetmap.org/{z}/{x}/{y}.png', {
          minZoom: 12,
          maxZoom: 17,
          attribution: 'Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, '
        })
      ],
      minZoom: 0,
      maxZoom: 17
}

// Initialize Windy API
windyInit( options, windyAPI =&gt; {
</code></pre>
<p dir="auto">... etc ...</p>
<p dir="auto">then those zoomed-in layers do not get added to the map (or at least are not accessible via the usual zoom buttons) -- whereas the above work fine in v2.3.  Am I doing something wrong? -- do these layer additions need to be done differently in API v4?</p>
<p dir="auto">Thank you all so much!<br />
Justin</p>
]]></description><link>https://community.windy.com/topic/6580/adding-zoomed-in-layers-in-api-v4</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 11:23:27 GMT</lastBuildDate><atom:link href="https://community.windy.com/topic/6580.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Aug 2018 21:12:50 GMT</pubDate><ttl>60</ttl></channel></rss>