hide copyright field as well, but make sure it's shown when we change maps and might...
[lantea.git] / js / map.js
index f27b0191c51efa38c6108e7cae000a3d56d22a75..dd3b57379dba2eddae10e8efe3647ecc80ec9138 100644 (file)
--- a/js/map.js
+++ b/js/map.js
@@ -145,6 +145,7 @@ function resizeAndDraw() {
   gCanvas.width = canvasWidth;
   gCanvas.height = canvasHeight;
   drawMap();
+  showUI();
 }
 
 function zoomIn() {
@@ -186,6 +187,7 @@ function setMapStyle() {
     gTiles = {};
     document.getElementById("copyright").innerHTML =
         gMapStyles[gActiveMap].copyright;
+    showUI();
     drawMap();
   }
 }
@@ -369,6 +371,7 @@ var mapEvHandler = {
         }
         gLastMouseX = x;
         gLastMouseY = y;
+        showUI();
         break;
       case "mousemove":
       case "touchmove":
@@ -380,6 +383,7 @@ var mapEvHandler = {
           gPos.x -= dX * gZoomFactor;
           gPos.y -= dY * gZoomFactor;
           drawMap();
+          showUI();
         }
         gLastMouseX = x;
         gLastMouseY = y;
@@ -387,6 +391,7 @@ var mapEvHandler = {
       case "mouseup":
       case "touchend":
         gDragging = false;
+        showUI();
         break;
       case "mouseout":
       case "touchcancel":