make overlay area go more into the corner on small screens
[lantea.git] / js / map.js
index 5709a561b8c3a85e5671fb237baaacd5a53aaa83..48b1128ac66cfee0d651977b763dab9fab98da49 100644 (file)
--- a/js/map.js
+++ b/js/map.js
@@ -124,6 +124,7 @@ function initMap() {
   gCanvas.addEventListener("touchcancel", mapEvHandler, false);
   gCanvas.addEventListener("touchleave", mapEvHandler, false);
 
+  // XXX deprecated? see https://groups.google.com/forum/?fromgroups#!topic/mozilla.dev.planning/kuhrORubaRY[1-25]
   gCanvas.addEventListener("DOMMouseScroll", mapEvHandler, false);
   gCanvas.addEventListener("mousewheel", mapEvHandler, false);
 
@@ -183,6 +184,8 @@ function setMapStyle() {
   if (mapSel.selectedIndex >= 0 && gActiveMap != mapSel.value) {
     gActiveMap = mapSel.value;
     gTiles = {};
+    document.getElementById("copyright").innerHTML =
+        gMapStyles[gActiveMap].copyright;
     drawMap();
   }
 }