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