X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/550c4a3a45814fde5c809334c85f1ebc47659a82..721f8e00b287974d6346e3c62bb8d0d599cc7db3:/app/views/api/map/index.json.jbuilder 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