Use local api to export map.osm

Closes #1282
This commit is contained in:
Han Chao 2017-03-05 10:37:25 +00:00 committed by Tom Hughes
parent b954416a70
commit 49a7921ec8
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ class ExportController < ApplicationController
if format == "osm"
# redirect to API map get
redirect_to "http://api.openstreetmap.org/api/#{API_VERSION}/map?bbox=#{bbox}"
redirect_to :controller => "api", :action => "map", :bbox => bbox
elsif format == "mapnik"
# redirect to a special 'export' cgi script