X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b70da7b8ea15ab48bb2f34155567cea6dffc8fc9..82a4548ca878d6c597df4178e81fd4e16da7212e:/app/views/api/map/index.json.jbuilder?ds=sidebyside diff --git a/app/views/api/map/index.json.jbuilder b/app/views/api/map/index.json.jbuilder index 7cc983aef..756884539 100644 --- a/app/views/api/map/index.json.jbuilder +++ b/app/views/api/map/index.json.jbuilder @@ -2,8 +2,8 @@ json.partial! "root_attributes" json.partial! "bounds" -all = @nodes + @ways + @relations - -json.elements(all) do |obj| - json.partial! obj +json.elements do + json.array! @nodes, :partial => "/api/nodes/node", :as => :node + json.array! @ways, :partial => "/api/ways/way", :as => :way + json.array! @relations, :partial => "/api/relations/relation", :as => :relation end