summaryrefslogtreecommitdiff
path: root/web/views/tag.erb
diff options
context:
space:
mode:
authorSarah Hoffmann <lonvia@denofr.de>2014-05-20 23:41:04 +0200
committerSarah Hoffmann <lonvia@denofr.de>2014-05-20 23:41:04 +0200
commita8384fff7a6ea9810a1007b789ccbd557ca8bbc0 (patch)
tree959b2b46a3238ca19db4d620da838e6bf3d5de94 /web/views/tag.erb
parent94f13611fe804f16ee3c8956b0d23fbe4d05bf4e (diff)
downloadtaginfo-a8384fff7a6ea9810a1007b789ccbd557ca8bbc0.tar
taginfo-a8384fff7a6ea9810a1007b789ccbd557ca8bbc0.tar.gz
add config options for base map attribution and separate scale factor for compare maps
Diffstat (limited to 'web/views/tag.erb')
-rw-r--r--web/views/tag.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/views/tag.erb b/web/views/tag.erb
index 391d193..1ae5274 100644
--- a/web/views/tag.erb
+++ b/web/views/tag.erb
@@ -69,14 +69,17 @@
<div style="background-image: url(<%= TaginfoConfig.get('geodistribution.background_image') %>); background-repeat: no-repeat; background-position: 1px 1px;"/>
<img class="map" src="/api/4/tag/distribution/nodes?key=<%= @key_uri %>&value=<%= @value_uri %>" alt="" width="<%= @img_width %>" height="<%= @img_height %>" style="position: absolute;"/>
<img class="map" src="/api/4/tag/distribution/ways?key=<%= @key_uri %>&value=<%= @value_uri %>" alt="" width="<%= @img_width %>" height="<%= @img_height %>"/>
+ <div class="note"><%= TaginfoConfig.get('geodistribution.image_attribution') %></div>
</div>
<% elsif @filter_type == 'nodes' %>
<div style="background-image: url(<%= TaginfoConfig.get('geodistribution.background_image') %>); background-repeat: no-repeat; background-position: 1px 1px;"/>
<img class="map" src="/api/4/tag/distribution/nodes?key=<%= @key_uri %>&value=<%= @value_uri %>" alt="" width="<%= @img_width %>" height="<%= @img_height %>"/>
+ <div class="note"><%= TaginfoConfig.get('geodistribution.image_attribution') %></div>
</div>
<% elsif @filter_type == 'ways' %>
<div style="background-image: url(<%= TaginfoConfig.get('geodistribution.background_image') %>); background-repeat: no-repeat; background-position: 1px 1px;"/>
<img class="map" src="/api/4/tag/distribution/ways?key=<%= @key_uri %>&value=<%= @value_uri %>" alt="" width="<%= @img_width %>" height="<%= @img_height %>"/>
+ <div class="note"><%= TaginfoConfig.get('geodistribution.image_attribution') %></div>
</div>
<% elsif @filter_type == 'relations' %>
<p class="empty"><%= h(t.pages.tag.geographic_distribution.relations) %></p>