attrs = {
- "minlat" => format("%.7f", @bounds.min_lat),
- "minlon" => format("%.7f", @bounds.min_lon),
- "maxlat" => format("%.7f", @bounds.max_lat),
- "maxlon" => format("%.7f", @bounds.max_lon)
+ "minlat" => format("%.7f", bounds.min_lat),
+ "minlon" => format("%.7f", bounds.min_lon),
+ "maxlat" => format("%.7f", bounds.max_lat),
+ "maxlon" => format("%.7f", bounds.max_lon)
}
xml.bounds(attrs)
xml.instruct!
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
- osm << (render(:partial => "bounds") || "")
+ osm << (render(:partial => "bounds", :object => @bounds) || "")
osm << (render(:partial => "node", :collection => @nodes) || "")
osm << (render(:partial => "way", :collection => @ways) || "")
osm << (render(:partial => "relation", :collection => @relations) || "")