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