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