Re: [openstreetmap/openstreetmap-website] XML generation: nodes, ways, relations, map controller → view (#2223)
mmd
notifications at github.com
Wed Jul 3 17:53:11 UTC 2019
mmd-osm commented on this pull request.
> @@ -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) || "")
That’s a logical or operator. If render returns nil, an empty string is added to the result as a fallback. See https://github.com/openstreetmap/openstreetmap-website/pull/2223#issuecomment-506019631
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2223#discussion_r300085505
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190703/0310eaa9/attachment-0001.html>
More information about the rails-dev
mailing list