call painting tiles before issuing the command to cache them
[lantea.git] / index.html
1 <!-- This Source Code Form is subject to the terms of the Mozilla Public
2    - License, v. 2.0. If a copy of the MPL was not distributed with this file,
3    - You can obtain one at http://mozilla.org/MPL/2.0/.  -->
4
5 <!DOCTYPE html>
6 <html manifest="manifest.appcache">
7 <head>
8   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
9   <!-- try to force a 1:1 scaling on mobile, see
10        https://developer.mozilla.org/en/Mobile/Viewport_meta_tag -->
11   <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1">
12   <title>Lantea Maps</title>
13   <script src="js/map.js" type="application/javascript;version=1.8"></script>
14   <script src="js/ui.js" type="application/javascript;version=1.8"></script>
15   <link rel="stylesheet" href="style/lantea.css">
16   <link rel="shortcut icon" href="style/lanteaIcon16.png" type="image/png">
17 </head>
18 <body id="body">
19 <h1>Lantea Map</h1>
20
21 <div id="menuArea" class="overlayArea">
22 <input type="button" id="trackButton" value="Track"
23        onclick="toggleTrackArea();"><br/>
24 <fieldset id="trackArea"><legend>Track</legend>
25 <input type="button" id="saveTrackButton" value="Save"
26        onclick="saveTrack();">
27 <input type="button" id="dumpTrackButton" value="Dump"
28        onclick="saveTrackDump();" class="debugHide">
29 <input type="button" id="clearTrackButton" value="Clear"
30        onclick="clearTrack();"><br/>
31 <input type="checkbox" id="trackCheckbox"
32        onchange="setTracking(this);">
33 <label for="trackCheckbox">Enable tracking</label><br/>
34 <input type="checkbox" id="centerCheckbox"
35        onchange="setCentering(this);">
36 <label for="centerCheckbox">Center Map</label><br/>
37 </fieldset>
38 <input type="button" id="settingsButton" value="Settings"
39        onclick="toggleSettings();"><br/>
40 <fieldset id="settingsArea"><legend>Settings</legend>
41 Map style:
42 <select id="mapSelector" onchange="setMapStyle();">
43 <!-- option value="osm_mapnik">OpenStreetMap (Mapnik)</option -->
44 </select><br/>
45 <input type="button" id="clearCacheButton" value="Clear Cached Maps"
46        onclick="gTileService.clearDB();">
47 </fieldset>
48 </div>
49
50 <div id="zoomArea" class="overlayArea">
51 <input type="button" id="zoomInButton" value="+"
52        onclick="zoomIn();"><br/>
53 <span id="zoomLevel">Z</span><br/>
54 <input type="button" id="zoomOutButton" value="-"
55        onclick="zoomOut();">
56 </div>
57
58 <div id="fullscreenArea" class="overlayArea">
59 <!-- other possible characters: &#x25F0; -->
60 <input type="button" id="fullscreenButton" value="&#x25A3;"
61        onclick="toggleFullscreen();">
62 </div>
63
64 <p id="action">
65   <img id="actionimg" src="style/loading_action.png">
66   <span id="actionlabel">Loading</span>&hellip;
67 </p>
68 <p id="copyright" class="overlayArea"></p>
69
70 <canvas id="map" width="500" height="500">
71   Please use a browser that supports &lt;canvas&gt; elements.
72 </canvas>
73 <canvas id="track" width="500" height="500">
74 </canvas>
75
76 </body>
77 </html>