summaryrefslogtreecommitdiff
path: root/web/lib
diff options
context:
space:
mode:
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/utils.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/web/lib/utils.rb b/web/lib/utils.rb
index 592b3ee..dee90c7 100644
--- a/web/lib/utils.rb
+++ b/web/lib/utils.rb
@@ -76,23 +76,10 @@ def external_link(id, title, link, new_window=false)
end
def tagcloud_size(tag)
- #(Math.log(0.000001 + tag['scale'].to_f * Math::E) * 36 + 12).to_i
x = tag['scale1'].to_f / 17 / 2 + tag['pos'] / 2
(x * 32 + 10).to_i
end
-def tagcloud_color(tag)
- c = 0xa0;
- if tag['in_wiki'].to_i == 1
- c -= 0x40;
- end
- if tag['in_josm'].to_i == 1
- c -= 0x60;
- end
- sprintf('#%02x%02x%02x', c, c, c)
- c = '#000000';
-end
-
def get_filter
f = params[:filter].to_s == '' ? 'all' : params[:filter]
if f !~ /^(all|nodes|ways|relations)$/