<p><b>@mmd-osm</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2223#discussion_r300419078">app/views/api/map/index.xml.builder</a>:</p>
<pre style='color:#555'>> @@ -0,0 +1,8 @@
+xml.instruct!
+
+xml.osm(OSM::API.new.xml_root_attributes) do |osm|
+ osm << (render(:partial => "bounds", :object => @bounds) || "")
+ osm << (render(@nodes) || "")
+ osm << (render(@ways) || "")
+ osm << (render(@relations) || "")
</pre>
<p>Documentation <a href="https://guides.rubyonrails.org/layouts_and_rendering.html" rel="nofollow">https://guides.rubyonrails.org/layouts_and_rendering.html</a> says:</p>
<blockquote>
<p>In the event that the collection is empty, render will return nil, so it should be fairly simple to provide alternative content.</p>
<pre><code><h1>Products</h1><%= render(@products) || "There are no products available." %>
</code></pre>
</blockquote>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2223?email_source=notifications&email_token=AAK2OLIDSWAD5UXNHNRLKILP5YBDTA5CNFSM4HLMFYO2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB5Q5IXY#discussion_r300419078">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJLGU5IRUO72K3X4LTP5YBDTANCNFSM4HLMFYOQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAK2OLNCEWZ2XPL4J4K75HDP5YBDTA5CNFSM4HLMFYO2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB5Q5IXY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2223?email_source=notifications\u0026email_token=AAK2OLIDSWAD5UXNHNRLKILP5YBDTA5CNFSM4HLMFYO2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB5Q5IXY#discussion_r300419078",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2223?email_source=notifications\u0026email_token=AAK2OLIDSWAD5UXNHNRLKILP5YBDTA5CNFSM4HLMFYO2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB5Q5IXY#discussion_r300419078",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>