X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/75a49786f8bcb76715cf4009ba807a844baae282..95e1aff23493b3725d5259bcca7bcc79d7d3bc26:/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