X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c162a9660e66e2a414c922cf5ec9efa318f86b0e..77797b21b0701654f9a7ee57aace7fa16214e9c2:/app/views/site/key.html.erb?ds=sidebyside diff --git a/app/views/site/key.html.erb b/app/views/site/key.html.erb index 949121d96..da7638948 100644 --- a/app/views/site/key.html.erb +++ b/app/views/site/key.html.erb @@ -4,7 +4,11 @@ <% data.each do |entry| %> " data-zoom-max="<%= entry["max_zoom"] %>"> - <%= image_tag "key/#{name}/#{entry['image']}" %> + <% if entry["width"] && entry["height"] && entry["fill"] %> + <%= image_tag "data:image/svg+xml,#{u("")}" %> + <% else %> + <%= image_tag "key/#{name}/#{entry['image']}" %> + <% end %> <%= Array(t(".table.entry.#{entry['name']}")).to_sentence %>