summaryrefslogtreecommitdiff
path: root/web/lib/ui
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-05-27 15:00:18 +0200
committerJochen Topf <jochen@topf.org>2013-05-27 15:00:18 +0200
commitc456c0df0fefd5b8585fce4c12baecbe66b50b34 (patch)
tree1c00edb37e6a0b248e83b43e2d9def9b7b3a4fbe /web/lib/ui
parentc698a719a97fcbb43cbc317862f208dcd9ee5776 (diff)
downloadtaginfo-c456c0df0fefd5b8585fce4c12baecbe66b50b34.tar
taginfo-c456c0df0fefd5b8585fce4c12baecbe66b50b34.tar.gz
Remove part of the Merkaartor code. This was never used and the Merkaartor editor is no longer maintained.
Diffstat (limited to 'web/lib/ui')
-rw-r--r--web/lib/ui/keys.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/web/lib/ui/keys.rb b/web/lib/ui/keys.rb
index f53c73b..1ffc8eb 100644
--- a/web/lib/ui/keys.rb
+++ b/web/lib/ui/keys.rb
@@ -49,16 +49,6 @@ class Taginfo < Sinatra::Base
@wiki_count = @db.count('wiki.wikipages').condition('value IS NULL').condition('key=?', @key).get_first_value().to_i
@user_count = @db.select('SELECT users_all FROM db.keys').condition('key=?', @key).get_first_value().to_i
-# (@merkaartor_type, @merkaartor_link, @merkaartor_selector) = @db.select('SELECT tag_type, link, selector FROM merkaartor.keys').condition('key=?', @key).get_columns(:tag_type, :link, :selector)
-# @merkaartor_images = [:node, :way, :area, :relation].map{ |type|
-# name = type.to_s.capitalize
-# '<img src="/img/types/' + (@merkaartor_selector =~ /Type is #{name}/ ? type.to_s : 'none') + '.16.png" width="16" height="16" alt="' + name + '" title="' + name + '"/>'
-# }.join('&nbsp;')
-#
-# @merkaartor_values = @db.select('SELECT value FROM merkaartor.tags').condition('key=?', @key).order_by([:value], 'ASC').execute().map{ |row| row['value'] }
-#
-# @merkaartor_desc = @db.select('SELECT lang, description FROM key_descriptions').condition('key=?', @key).order_by([:lang], 'DESC').execute()
-
@img_width = TaginfoConfig.get('geodistribution.width') * TaginfoConfig.get('geodistribution.scale_image')
@img_height = TaginfoConfig.get('geodistribution.height') * TaginfoConfig.get('geodistribution.scale_image')