<?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[Windy API4 - L.control]]></title><description><![CDATA[<p dir="auto">Hi there, how can i use L.control in windity api? I need to add scale to the map, how to do it?</p>
]]></description><link>https://community.windy.com/topic/6717/windy-api4-l-control</link><generator>RSS for Node</generator><lastBuildDate>Sun, 13 Sep 2026 02:00:24 GMT</lastBuildDate><atom:link href="https://community.windy.com/topic/6717.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 16 Sep 2018 01:19:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Windy API4 - L.control on Fri, 21 Sep 2018 22:06:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/silvestrejose" aria-label="Profile: silvestrejose">@<bdi>silvestrejose</bdi></a> I think I found the issue you're having, if its the same as mine. My code was all correct, my layers were constructed, everything was fine. I went and built a barebones Leaflet map and added layer control with no issue, so I couldn't figure it out. Eventually I cleared all my code and started fresh and when inspecting I noticed my control div greyed out, sure enough it had a display: none; rule in Windy's CSS which isn't documented anywhere. I didn't even think about this and feel kind of silly for it.</p>
<p dir="auto">#windy #map_container .leaflet-control-container {<br />
display: none;<br />
}</p>
<p dir="auto">So you'll just have to override this rule and all will be well in the world. :)</p>
]]></description><link>https://community.windy.com/post/15203</link><guid isPermaLink="true">https://community.windy.com/post/15203</guid><dc:creator><![CDATA[CodeSpent]]></dc:creator><pubDate>Fri, 21 Sep 2018 22:06:25 GMT</pubDate></item><item><title><![CDATA[Reply to Windy API4 - L.control on Fri, 21 Sep 2018 21:52:40 GMT]]></title><description><![CDATA[<p dir="auto">Do you have any working examples? I'm not getting any errors, but the control is not drawing. Would love to see a use case with Windy for reference as I created a sandbox barebones leaflet map with no problems adding control.</p>
]]></description><link>https://community.windy.com/post/15202</link><guid isPermaLink="true">https://community.windy.com/post/15202</guid><dc:creator><![CDATA[CodeSpent]]></dc:creator><pubDate>Fri, 21 Sep 2018 21:52:40 GMT</pubDate></item><item><title><![CDATA[Reply to Windy API4 - L.control on Wed, 19 Sep 2018 22:18:33 GMT]]></title><description><![CDATA[<p dir="auto">have you looked at the documentation samples:<br />
<a href="https://api4.windy.com/examples/hello-world/" rel="nofollow ugc">https://api4.windy.com/examples/hello-world/</a></p>
<p dir="auto">once you have a reference to <code>map</code>, you can use it as documented in leaflet documentation.</p>
]]></description><link>https://community.windy.com/post/15147</link><guid isPermaLink="true">https://community.windy.com/post/15147</guid><dc:creator><![CDATA[fastseas]]></dc:creator><pubDate>Wed, 19 Sep 2018 22:18:33 GMT</pubDate></item></channel></rss>