X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/02628bed1e7b5c2656bc68076403467e92462b4f..c322b0c298ddbf11fdd2c7cf541cefde0f2b5e55:/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 22261900d..6fc70ef46 100644 --- a/app/views/site/_key.html.erb +++ b/app/views/site/_key.html.erb @@ -17,7 +17,7 @@ } function updateMapKey() { - var layer = map.baseLayer.name.toLowerCase().replace(/\s+/g, "_"); + var layer = map.baseLayer.keyid; var zoom = map.getZoom(); <%= remote_function :update => "sidebar_content", @@ -29,5 +29,5 @@ <% content_for :left_menu do %> - <%= link_to_function t('site.key.map_key'), "openMapKey()", :title => t('site.key.map_key_tooltip') %> +
  • <%= link_to_function t('site.key.map_key'), "openMapKey()", :title => t('site.key.map_key_tooltip') %>
  • <% end %>