Commit | Line | Data |
---|---|---|
a7393a71 RK |
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/. --> | |
23cd2dcc | 4 | |
8383f143 RK |
5 | <!DOCTYPE html> |
6 | <html manifest="manifest.appcache"> | |
7 | <head> | |
8 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
628ba778 | 9 | <!-- try to force a 1:1 scaling and disable pinch-zoom on mobile, see |
6b1e7340 | 10 | https://developer.mozilla.org/en/Mobile/Viewport_meta_tag --> |
628ba778 | 11 | <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, user-scalable=no"> |
753078ce | 12 | <title>Lantea Maps</title> |
da6dad24 | 13 | <script src="js/osmauth.js" type="application/javascript;version=1.8"></script> |
b5e49b95 RK |
14 | <script src="js/map.js" type="application/javascript;version=1.8"></script> |
15 | <script src="js/ui.js" type="application/javascript;version=1.8"></script> | |
23cd2dcc | 16 | <link rel="stylesheet" href="style/lantea.css"> |
b395419b | 17 | <link rel="shortcut icon" href="style/lanteaIcon16.png" type="image/png"> |
8383f143 | 18 | </head> |
c5378747 | 19 | <body id="body"> |
b47b4a65 RK |
20 | <h1>Lantea Map</h1> |
21 | ||
123b3142 RK |
22 | <div id="trackArea" class="menuDrawer hidden"> |
23 | <h2 onclick="toggleTrackArea();"> | |
db2008ca RK |
24 | <image src="style/track.svg" alt=""> Track |
25 | </h2> | |
026c4f46 RK |
26 | <p id="trackData"><span id="trackLength"><span id="trackLengthNum">0</span> km</span>, |
27 | <span id="trackDuration"><span id="trackDurationH"><span id="trackDurationHNum">0</span> h</span> | |
28 | <span id="trackDurationM"><span id="trackDurationMNum">0</span> min</span></span> | |
db2008ca RK |
29 | </p> |
30 | <p> | |
993fd081 RK |
31 | <input type="button" id="saveTrackButton" value="Save" |
32 | onclick="saveTrack();"> | |
4b12da3a | 33 | <input type="button" id="dumpTrackButton" value="Dump" |
b91b74a7 | 34 | onclick="saveTrackDump();" class="debugHide"> |
8389557a | 35 | <input type="button" id="uploadTrackButton" value="Upload" disabled="true" |
43255174 | 36 | onclick="showUploadDialog();"> |
993fd081 | 37 | <input type="button" id="clearTrackButton" value="Clear" |
db2008ca RK |
38 | onclick="clearTrack();"> |
39 | </p> | |
40 | <p> | |
3610c22d RK |
41 | <input type="checkbox" id="trackCheckbox" |
42 | onchange="setTracking(this);"> | |
43 | <label for="trackCheckbox">Enable tracking</label><br/> | |
db2008ca RK |
44 | </p> |
45 | <p> | |
3610c22d RK |
46 | <input type="checkbox" id="centerCheckbox" |
47 | onchange="setCentering(this);"> | |
48 | <label for="centerCheckbox">Center Map</label><br/> | |
db2008ca | 49 | </p> |
123b3142 RK |
50 | </div> |
51 | ||
52 | <div id="settingsArea" class="menuDrawer hidden"> | |
53 | <h2 onclick="toggleSettings();"> | |
db2008ca RK |
54 | <image src="style/settings.svg" alt=""> Settings |
55 | </h2> | |
56 | <p> | |
43255174 | 57 | <label for="mapSelector">Map style:</label> |
3610c22d | 58 | <select id="mapSelector" onchange="setMapStyle();"> |
b47b4a65 | 59 | <!-- option value="osm_mapnik">OpenStreetMap (Mapnik)</option --> |
8389557a | 60 | </select> |
db2008ca RK |
61 | </p> |
62 | <p> | |
3431f496 RK |
63 | <input type="button" id="clearCacheButton" value="Clear Cached Maps" |
64 | onclick="gTileService.clearDB();"> | |
db2008ca | 65 | </p> |
c4d0569c | 66 | <div id="uploadSettingsArea" class="debugHide"> |
8389557a RK |
67 | <p class="settingsSubTitle">OpenStreetMap Track Upload:</p> |
68 | <label for="uploadUser">User name:</label> | |
69 | <input type="text" id="uploadUser" maxlength="255" | |
70 | onchange="setUploadField(this);"><br/> | |
71 | <label for="uploadPwd">Password:</label> | |
72 | <input type="password" id="uploadPwd" maxlength="255" | |
73 | onchange="setUploadField(this);"> | |
c4d0569c | 74 | </div> |
123b3142 RK |
75 | </div> |
76 | ||
77 | <div id="menuArea" class="overlayArea"> | |
78 | <image src="style/track.svg" id="trackButton" value="Track" | |
79 | onclick="toggleTrackArea();"><br/> | |
80 | <image src="style/settings.svg" id="settingsButton" alt="Settings" | |
81 | onclick="toggleSettings();"><br/> | |
b47b4a65 | 82 | </div> |
8383f143 | 83 | |
336097e2 RK |
84 | <div id="zoomArea" class="overlayArea"> |
85 | <input type="button" id="zoomInButton" value="+" | |
ac45368e RK |
86 | onclick="zoomIn();"> |
87 | <p id="zoomLevel">Z</p> | |
88 | <input type="button" id="zoomOutButton" value="−" | |
336097e2 RK |
89 | onclick="zoomOut();"> |
90 | </div> | |
91 | ||
c5378747 RK |
92 | <div id="fullscreenArea" class="overlayArea"> |
93 | <!-- other possible characters: ◰ --> | |
94 | <input type="button" id="fullscreenButton" value="▣" | |
95 | onclick="toggleFullscreen();"> | |
96 | </div> | |
97 | ||
43255174 RK |
98 | <div id="dialogArea" class="hidden"> |
99 | <div id="uploadDialog"> | |
100 | <p class="dialogTitle">Upload Track to OpenStreetMap:</p> | |
101 | <label for="uploadVisibility">Visibility:</label> | |
102 | <select id="uploadVisibility"> | |
103 | <option value="identifiable">Identifiable</option> | |
104 | <option value="private">Private</option> | |
105 | </select><br> | |
106 | <label for="uploadDesc">Description:</label> | |
107 | <input type="text" id="uploadDesc" maxlength="255" size="25" | |
108 | value="Lantea Maps"> | |
109 | <p class="dialogHelp">You will be asked for your OSM user name and password | |
110 | when clicking "Upload Track".</p> | |
111 | <input type="button" id="uploadDialogUploadButton" value="Upload Track" | |
112 | onclick="uploadTrack();"> | |
113 | <input type="button" id="uploadDialogCancelButton" value="Cancel" | |
114 | onclick="cancelDialog();"> | |
115 | </div> | |
116 | <div id="uploadStatus"> | |
117 | <p class="dialogTitle">Track Upload to OpenStreetMap</p> | |
118 | <p id="uploadInProgress"><img id="actionimg" src="style/loading_action.png"> | |
119 | Upload in progress…</p> | |
120 | <p id="uploadSuccess" style="display:none;">Track upload successful!</p> | |
121 | <p id="uploadFailed" style="display:none;">Track upload failed.</p> | |
122 | <p id="uploadError" style="display:none;">Error:<br> | |
123 | <span id="uploadErrorMsg"></span></p> | |
124 | <input type="button" id="uploadStatusCloseButton" value="Close" | |
125 | onclick="cancelDialog();" disabled="true"> | |
126 | </div> | |
ecde0af2 RK |
127 | <div id="noGLwarning"> |
128 | Unable to initialize WebGL. You need a browser that supports it. | |
129 | </div> | |
43255174 RK |
130 | </div> |
131 | ||
68afcd96 RK |
132 | <p id="action"> |
133 | <img id="actionimg" src="style/loading_action.png"> | |
134 | <span id="actionlabel">Loading</span>… | |
135 | </p> | |
b5c85133 | 136 | <p id="copyright" class="overlayArea"></p> |
6b1e7340 | 137 | |
23cd2dcc RK |
138 | <canvas id="map" width="500" height="500"> |
139 | Please use a browser that supports <canvas> elements. | |
140 | </canvas> | |
4b1d0915 RK |
141 | <canvas id="track" width="500" height="500"> |
142 | </canvas> | |
23cd2dcc | 143 | |
23cd2dcc | 144 | </body> |
da6dad24 | 145 | </html> |