X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/877724813ce3b9bc8b3a33a1544bdc4e27d2f2af..689dc6e451cb177a50d633af30ce27d5f637eb6d:/app/views/site/_key.rhtml diff --git a/app/views/site/_key.rhtml b/app/views/site/_key.rhtml index 320890078..f800bbb97 100644 --- a/app/views/site/_key.rhtml +++ b/app/views/site/_key.rhtml @@ -8,11 +8,12 @@ var zoomlevel = map.getZoom(); if (zoomlevel<7 ) { var imgname = 'keymapnik6.png'; } - else if (zoomlevel<12) { var imgname = 'keymapnik'+zoomlevel+'.png'; } - else { var imgname = 'keymapnik12.png'; } + else if (zoomlevel<13) { var imgname = 'keymapnik'+zoomlevel+'.png'; } + else if (zoomlevel<15) { var imgname = 'keymapnik13.png'; } + else { var imgname = 'keymapnik15.png'; } - updateSidebar("Map key", "

"); - openSidebar("210px"); + updateSidebar("Map key", "

<\/p>"); + openSidebar({ width: "210px" }); } function updateKey() {