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"> | |
68afcd96 | 9 | <!-- try to force a 1:1 scaling on mobile, see |
6b1e7340 | 10 | https://developer.mozilla.org/en/Mobile/Viewport_meta_tag --> |
68afcd96 | 11 | <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1"> |
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 | ||
336097e2 | 21 | <div id="menuArea" class="overlayArea"> |
993fd081 RK |
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();"> | |
4b12da3a | 27 | <input type="button" id="dumpTrackButton" value="Dump" |
b91b74a7 | 28 | onclick="saveTrackDump();" class="debugHide"> |
8389557a | 29 | <input type="button" id="uploadTrackButton" value="Upload" disabled="true" |
43255174 | 30 | onclick="showUploadDialog();"> |
993fd081 RK |
31 | <input type="button" id="clearTrackButton" value="Clear" |
32 | onclick="clearTrack();"><br/> | |
3610c22d RK |
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/> | |
993fd081 | 39 | </fieldset> |
b47b4a65 | 40 | <input type="button" id="settingsButton" value="Settings" |
993fd081 RK |
41 | onclick="toggleSettings();"><br/> |
42 | <fieldset id="settingsArea"><legend>Settings</legend> | |
43255174 | 43 | <label for="mapSelector">Map style:</label> |
3610c22d | 44 | <select id="mapSelector" onchange="setMapStyle();"> |
b47b4a65 | 45 | <!-- option value="osm_mapnik">OpenStreetMap (Mapnik)</option --> |
8389557a RK |
46 | </select> |
47 | <br/> | |
3431f496 RK |
48 | <input type="button" id="clearCacheButton" value="Clear Cached Maps" |
49 | onclick="gTileService.clearDB();"> | |
c4d0569c | 50 | <div id="uploadSettingsArea" class="debugHide"> |
8389557a RK |
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);"> | |
c4d0569c | 58 | </div> |
b47b4a65 RK |
59 | </fieldset> |
60 | </div> | |
8383f143 | 61 | |
336097e2 RK |
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 | ||
c5378747 RK |
70 | <div id="fullscreenArea" class="overlayArea"> |
71 | <!-- other possible characters: ◰ --> | |
72 | <input type="button" id="fullscreenButton" value="▣" | |
73 | onclick="toggleFullscreen();"> | |
74 | </div> | |
75 | ||
43255174 RK |
76 | <div id="dialogArea" class="hidden"> |
77 | <div id="uploadDialog"> | |
78 | <p class="dialogTitle">Upload Track to OpenStreetMap:</p> | |
79 | <label for="uploadVisibility">Visibility:</label> | |
80 | <select id="uploadVisibility"> | |
81 | <option value="identifiable">Identifiable</option> | |
82 | <option value="private">Private</option> | |
83 | </select><br> | |
84 | <label for="uploadDesc">Description:</label> | |
85 | <input type="text" id="uploadDesc" maxlength="255" size="25" | |
86 | value="Lantea Maps"> | |
87 | <p class="dialogHelp">You will be asked for your OSM user name and password | |
88 | when clicking "Upload Track".</p> | |
89 | <input type="button" id="uploadDialogUploadButton" value="Upload Track" | |
90 | onclick="uploadTrack();"> | |
91 | <input type="button" id="uploadDialogCancelButton" value="Cancel" | |
92 | onclick="cancelDialog();"> | |
93 | </div> | |
94 | <div id="uploadStatus"> | |
95 | <p class="dialogTitle">Track Upload to OpenStreetMap</p> | |
96 | <p id="uploadInProgress"><img id="actionimg" src="style/loading_action.png"> | |
97 | Upload in progress…</p> | |
98 | <p id="uploadSuccess" style="display:none;">Track upload successful!</p> | |
99 | <p id="uploadFailed" style="display:none;">Track upload failed.</p> | |
100 | <p id="uploadError" style="display:none;">Error:<br> | |
101 | <span id="uploadErrorMsg"></span></p> | |
102 | <input type="button" id="uploadStatusCloseButton" value="Close" | |
103 | onclick="cancelDialog();" disabled="true"> | |
104 | </div> | |
ecde0af2 RK |
105 | <div id="noGLwarning"> |
106 | Unable to initialize WebGL. You need a browser that supports it. | |
107 | </div> | |
43255174 RK |
108 | </div> |
109 | ||
68afcd96 RK |
110 | <p id="action"> |
111 | <img id="actionimg" src="style/loading_action.png"> | |
112 | <span id="actionlabel">Loading</span>… | |
113 | </p> | |
b5c85133 | 114 | <p id="copyright" class="overlayArea"></p> |
6b1e7340 | 115 | |
23cd2dcc | 116 | <canvas id="map" width="500" height="500"> |
ecde0af2 RK |
117 | </canvas> |
118 | <canvas id="glmap" width="500" height="500"> | |
23cd2dcc RK |
119 | Please use a browser that supports <canvas> elements. |
120 | </canvas> | |
4b1d0915 RK |
121 | <canvas id="track" width="500" height="500"> |
122 | </canvas> | |
23cd2dcc | 123 | |
23cd2dcc RK |
124 | </body> |
125 | </html> |