X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/73c95847a6680bea7f35fe5b3da6eb4e52757b9c..18409c05ab43a2f818f6db911ae383eb0ebfb07d:/app/views/api/map/index.json.jbuilder?ds=inline 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