hide copyright field as well, but make sure it's shown when we change maps and might...
authorRobert Kaiser <kairo@kairo.at>
Fri, 14 Sep 2012 01:51:10 +0000 (03:51 +0200)
committerRobert Kaiser <kairo@kairo.at>
Fri, 14 Sep 2012 01:51:10 +0000 (03:51 +0200)
index.html
js/map.js
style/lantea.css

index 7a0753db876a7d5a18afe351b989f5e6bc9c61da..2bfb6b56d80f5b536e763fe8521394018a7b53d6 100644 (file)
@@ -54,7 +54,7 @@ Map style:
 </div>
 
 <p id="debug" class="debugHide"></p>
-<p id="copyright"></p>
+<p id="copyright" class="overlayArea"></p>
 
 <canvas id="map" width="500" height="500">
   Please use a browser that supports &lt;canvas&gt; elements.
index d07cd743682289b924cc6142399eee4c5b688291..dd3b57379dba2eddae10e8efe3647ecc80ec9138 100644 (file)
--- a/js/map.js
+++ b/js/map.js
@@ -187,6 +187,7 @@ function setMapStyle() {
     gTiles = {};
     document.getElementById("copyright").innerHTML =
         gMapStyles[gActiveMap].copyright;
+    showUI();
     drawMap();
   }
 }
index 823745ad7cff0d9baf1ee985f36422c6bc4bb13c..d1ca01ee84b9a10f5aebda3643c3d44f77097041 100644 (file)
@@ -105,6 +105,9 @@ h1 {
   padding: 0 3px;
 }
 
+#copyright.hidden {
+  opacity: 0;
+}
 
 @media screen and (max-width: 500px) {
   body {