]> git.openstreetmap.org Git - rails.git/commitdiff
Use correct key for z15 and greater.
authorTom Hughes <tom@compton.nu>
Sun, 29 Mar 2009 16:23:07 +0000 (16:23 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 29 Mar 2009 16:23:07 +0000 (16:23 +0000)
app/views/site/_key.rhtml

index c632f16617c6cb2662bacef45a3a80309096f466..f800bbb9767cc29cc3266d87179956dba7c1fbf4 100644 (file)
@@ -9,7 +9,8 @@
 
     if (zoomlevel<7 )      { var imgname = 'keymapnik6.png'; }
     else if (zoomlevel<13) { var imgname = 'keymapnik'+zoomlevel+'.png'; }
-    else                   { var imgname = 'keymapnik13.png'; }
+    else if (zoomlevel<15) { var imgname = 'keymapnik13.png'; }
+    else                   { var imgname = 'keymapnik15.png'; }
 
     updateSidebar("Map key", "<p><img src='images/"+imgname+"' /><\/p>");
     openSidebar({ width: "210px" });