diff options
-rw-r--r-- | taginfo-config-example.json | 1 | ||||
-rw-r--r-- | web/lib/utils.rb | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/taginfo-config-example.json b/taginfo-config-example.json index dac6bc8..0c5dda2 100644 --- a/taginfo-config-example.json +++ b/taginfo-config-example.json @@ -41,7 +41,6 @@ // will be called, if less the Wizard will be used with autorun and autozoom "max_auto": 100, "url_prefix": "http://overpass-turbo.eu/?", - "wizard_url_prefix": "http://overpass-turbo.eu/master?", // set this to "global" or "in <area>" where <area> is a country name or other region found by Nominatim "wizard_area": "global" }, diff --git a/web/lib/utils.rb b/web/lib/utils.rb index fc0d395..104d9d6 100644 --- a/web/lib/utils.rb +++ b/web/lib/utils.rb @@ -108,7 +108,7 @@ def turbo_link(count, filter, key, value=nil) if filter != 'all' filter_condition = ' and type:' + filter.chop end - url = TaginfoConfig.get('turbo.wizard_url_prefix', 'http://overpass-turbo.eu/master?') + 'w=' + Rack::Utils::escape('"' + key + '"=' + value + filter_condition.to_s + ' ' + TaginfoConfig.get('turbo.wizard_area', 'global')) + '&R' + url = TaginfoConfig.get('turbo.url_prefix', 'http://overpass-turbo.eu/?') + 'w=' + Rack::Utils::escape('"' + key + '"=' + value + filter_condition.to_s + ' ' + TaginfoConfig.get('turbo.wizard_area', 'global')) + '&R' else template = 'key'; parameters = { :key => key } |