]> git.openstreetmap.org Git - rails.git/blob - app/views/api/map/index.xml.builder
Move xml gen. into view for (old) nodes, ways, relations, map
[rails.git] / app / views / api / map / index.xml.builder
1 xml.instruct!
2
3 xml.osm(OSM::API.new.xml_root_attributes) do |osm|
4   osm << (render(:partial => "bounds") || "")
5   osm << (render(:partial => "node", :collection => @nodes) || "")
6   osm << (render(:partial => "way", :collection => @ways) || "")
7   osm << (render(:partial => "relation", :collection => @relations) || "")
8 end