1 <% content_for :left_menu do %>
2 <%= link_to_function "Map key", "showKey();" %>
5 <script type="text/javascript">
8 var zoomlevel = map.getZoom();
10 if (zoomlevel<7 ) { var imgname = 'keymapnik6.png'; }
11 else if (zoomlevel<13) { var imgname = 'keymapnik'+zoomlevel+'.png'; }
12 else { var imgname = 'keymapnik13.png'; }
14 updateSidebar("Map key", "<p><img src='images/"+imgname+"' /></p>");
15 openSidebar({ width: "210px" });
18 function updateKey() {
19 if (sidebarOpen("Map key"))