some steps to make tile cache in indexedDB work - tiles don't paint correctly now...
[lantea.git] / index.html
index c7a4f62edcfd4fcb11ac03f121f1a75b717f35a5..d5a79757b215420a62ef5709f07fb2f4397ce674 100644 (file)
@@ -6,21 +6,19 @@
 <html manifest="manifest.appcache">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-  <title>Lantea Map</title>
+  <!-- try to counts default scaling on mobile, see 
+       https://developer.mozilla.org/en/Mobile/Viewport_meta_tag -->
+  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=.6667, maximum-scale=.6667">
+  <title>Lantea Maps</title>
   <script src="js/map.js"></script>
   <script src="js/ui.js"></script>
   <link rel="stylesheet" href="style/lantea.css">
   <link rel="shortcut icon" href="style/lanteaIcon16.png" type="image/png">
 </head>
-<body>
+<body id="body">
 <h1>Lantea Map</h1>
 
-<div id="overlayArea">
-<input type="button" id="zoomInButton" value="+"
-       onclick="zoomIn();">
-<span id="zoomLevel">Z</span>
-<input type="button" id="zoomOutButton" value="-"
-       onclick="zoomOut();"><br/>
+<div id="menuArea" class="overlayArea">
 <input type="button" id="trackButton" value="Track"
        onclick="toggleTrackArea();"><br/>
 <fieldset id="trackArea"><legend>Track</legend>
@@ -47,12 +45,28 @@ Map style:
 </fieldset>
 </div>
 
+<div id="zoomArea" class="overlayArea">
+<input type="button" id="zoomInButton" value="+"
+       onclick="zoomIn();"><br/>
+<span id="zoomLevel">Z</span><br/>
+<input type="button" id="zoomOutButton" value="-"
+       onclick="zoomOut();">
+</div>
+
+<div id="fullscreenArea" class="overlayArea">
+<!-- other possible characters: &#x25F0; -->
+<input type="button" id="fullscreenButton" value="&#x25A3;"
+       onclick="toggleFullscreen();">
+</div>
+
+<p id="debug" class="debugHide"></p>
+<p id="copyright" class="overlayArea"></p>
+
 <canvas id="map" width="500" height="500">
   Please use a browser that supports &lt;canvas&gt; elements.
 </canvas>
-
-<p id="debug" class="debugHide"></p>
-<p id="copyright"></p>
+<canvas id="track" width="500" height="500">
+</canvas>
 
 </body>
 </html>
\ No newline at end of file