really enable upload
[lantea.git] / index.html
... / ...
CommitLineData
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="uploadTrackButton" value="Upload" disabled="true"
30 onclick="uploadTrack();" class="debugHide">
31<input type="button" id="clearTrackButton" value="Clear"
32 onclick="clearTrack();"><br/>
33<input type="checkbox" id="trackCheckbox"
34 onchange="setTracking(this);">
35<label for="trackCheckbox">Enable tracking</label><br/>
36<input type="checkbox" id="centerCheckbox"
37 onchange="setCentering(this);">
38<label for="centerCheckbox">Center Map</label><br/>
39</fieldset>
40<input type="button" id="settingsButton" value="Settings"
41 onclick="toggleSettings();"><br/>
42<fieldset id="settingsArea"><legend>Settings</legend>
43Map style:
44<select id="mapSelector" onchange="setMapStyle();">
45<!-- option value="osm_mapnik">OpenStreetMap (Mapnik)</option -->
46</select>
47<br/>
48<input type="button" id="clearCacheButton" value="Clear Cached Maps"
49 onclick="gTileService.clearDB();">
50<div id="uploadSettingsArea" class="debugHide">
51<p class="settingsSubTitle">OpenStreetMap Track Upload:</p>
52<label for="uploadUser">User name:</label>
53<input type="text" id="uploadUser" maxlength="255"
54 onchange="setUploadField(this);"><br/>
55<label for="uploadPwd">Password:</label>
56<input type="password" id="uploadPwd" maxlength="255"
57 onchange="setUploadField(this);">
58</div>
59</fieldset>
60</div>
61
62<div id="zoomArea" class="overlayArea">
63<input type="button" id="zoomInButton" value="+"
64 onclick="zoomIn();"><br/>
65<span id="zoomLevel">Z</span><br/>
66<input type="button" id="zoomOutButton" value="-"
67 onclick="zoomOut();">
68</div>
69
70<div id="fullscreenArea" class="overlayArea">
71<!-- other possible characters: &#x25F0; -->
72<input type="button" id="fullscreenButton" value="&#x25A3;"
73 onclick="toggleFullscreen();">
74</div>
75
76<p id="action">
77 <img id="actionimg" src="style/loading_action.png">
78 <span id="actionlabel">Loading</span>&hellip;
79</p>
80<p id="copyright" class="overlayArea"></p>
81
82<canvas id="map" width="500" height="500">
83 Please use a browser that supports &lt;canvas&gt; elements.
84</canvas>
85<canvas id="track" width="500" height="500">
86</canvas>
87
88</body>
89</html>