}
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",
</script>
<% content_for :left_menu do %>
- <%= link_to_function t('site.key.map_key'), "openMapKey()", :title => t('site.key.map_key_tooltip') %>
+ <li><%= link_to_function t('site.key.map_key'), "openMapKey()", :title => t('site.key.map_key_tooltip') %></li>
<% end %>