Skip to content
Newer
Older
100644 146 lines (135 sloc) 5.32 KB
a7393a7 @KaiRo-at relicense lantea and mandelbrot to MPL2
authored Jan 20, 2012
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/. -->
23cd2dc @KaiRo-at add actual maps to Lantea
authored Dec 18, 2011
4
8383f14 @KaiRo-at add lantea and mandelbrot apps
authored Dec 18, 2011
5 <!DOCTYPE html>
6 <html manifest="manifest.appcache">
7 <head>
8 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
628ba77 @KaiRo-at add user-scalable=no to viewport meta to try and prevent pinch zoom a…
authored Apr 8, 2014
9 <!-- try to force a 1:1 scaling and disable pinch-zoom on mobile, see
6b1e734 @KaiRo-at try to deal with the default scaling of mobile devices, eliminate whi…
authored Mar 2, 2012
10 https://developer.mozilla.org/en/Mobile/Viewport_meta_tag -->
628ba77 @KaiRo-at add user-scalable=no to viewport meta to try and prevent pinch zoom a…
authored Apr 8, 2014
11 <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, user-scalable=no">
753078c @KaiRo-at actually name it Lantea Map*s*
authored Jan 20, 2012
12 <title>Lantea Maps</title>
da6dad2 @KaiRo-at prepare for OAuth support but don't enable it as actually GPS trace c…
authored Mar 26, 2016
13 <script src="js/osmauth.js" type="application/javascript;version=1.8"></script>
b5e49b9 @KaiRo-at optimize panning, and some cleanup
authored Dec 15, 2012
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>
23cd2dc @KaiRo-at add actual maps to Lantea
authored Dec 18, 2011
16 <link rel="stylesheet" href="style/lantea.css">
b395419 @KaiRo-at add icons, loading image and make mouse zooming keep the zoomed point…
authored Dec 18, 2011
17 <link rel="shortcut icon" href="style/lanteaIcon16.png" type="image/png">
8383f14 @KaiRo-at add lantea and mandelbrot apps
authored Dec 18, 2011
18 </head>
c537874 @KaiRo-at support full screen mode
authored Oct 7, 2012
19 <body id="body">
b47b4a6 @KaiRo-at add zooming and map style selection
authored Dec 18, 2011
20 <h1>Lantea Map</h1>
21
123b314 @KaiRo-at switch track and settings menus to drawers
authored Jun 7, 2015
22 <div id="trackArea" class="menuDrawer hidden">
23 <h2 onclick="toggleTrackArea();">
db2008c @KaiRo-at add custom style for buttons, checkboxes and selects in menu drawer
authored Jun 7, 2015
24 <image src="style/track.svg" alt=""> Track
25 </h2>
026c4f4 @KaiRo-at improve track time display
authored Jun 7, 2015
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>
db2008c @KaiRo-at add custom style for buttons, checkboxes and selects in menu drawer
authored Jun 7, 2015
29 </p>
30 <p>
993fd08 add support for persistent data via indexedDB, persist tracks across …
Robert Kaiser authored Dec 27, 2011
31 <input type="button" id="saveTrackButton" value="Save"
32 onclick="saveTrack();">
4b12da3 @KaiRo-at improve debugging, make geofake do dmaller tracks, use correct GPX MI…
authored Jan 20, 2012
33 <input type="button" id="dumpTrackButton" value="Dump"
b91b74a hide Dump again, hide Save on Firefox OS
Robert Kaiser authored Oct 22, 2012
34 onclick="saveTrackDump();" class="debugHide">
8389557 @KaiRo-at add an upload button for OSM track upload - still doesn't work right,…
authored Apr 13, 2013
35 <input type="button" id="uploadTrackButton" value="Upload" disabled="true"
4325517 @KaiRo-at Make upload a smoother experience with some in-app UI and enable it o…
authored Apr 19, 2013
36 onclick="showUploadDialog();">
993fd08 add support for persistent data via indexedDB, persist tracks across …
Robert Kaiser authored Dec 27, 2011
37 <input type="button" id="clearTrackButton" value="Clear"
db2008c @KaiRo-at add custom style for buttons, checkboxes and selects in menu drawer
authored Jun 7, 2015
38 onclick="clearTrack();">
39 </p>
40 <p>
3610c22 persist prefs
Robert Kaiser authored Dec 27, 2011
41 <input type="checkbox" id="trackCheckbox"
42 onchange="setTracking(this);">
43 <label for="trackCheckbox">Enable tracking</label><br/>
db2008c @KaiRo-at add custom style for buttons, checkboxes and selects in menu drawer
authored Jun 7, 2015
44 </p>
45 <p>
3610c22 persist prefs
Robert Kaiser authored Dec 27, 2011
46 <input type="checkbox" id="centerCheckbox"
47 onchange="setCentering(this);">
48 <label for="centerCheckbox">Center Map</label><br/>
db2008c @KaiRo-at add custom style for buttons, checkboxes and selects in menu drawer
authored Jun 7, 2015
49 </p>
123b314 @KaiRo-at switch track and settings menus to drawers
authored Jun 6, 2015
50 </div>
51
52 <div id="settingsArea" class="menuDrawer hidden">
53 <h2 onclick="toggleSettings();">
db2008c @KaiRo-at add custom style for buttons, checkboxes and selects in menu drawer
authored Jun 7, 2015
54 <image src="style/settings.svg" alt=""> Settings
55 </h2>
56 <p>
4325517 @KaiRo-at Make upload a smoother experience with some in-app UI and enable it o…
authored Apr 18, 2013
57 <label for="mapSelector">Map style:</label>
3610c22 persist prefs
Robert Kaiser authored Dec 27, 2011
58 <select id="mapSelector" onchange="setMapStyle();">
b47b4a6 @KaiRo-at add zooming and map style selection
authored Dec 18, 2011
59 <!-- option value="osm_mapnik">OpenStreetMap (Mapnik)</option -->
8389557 @KaiRo-at add an upload button for OSM track upload - still doesn't work right,…
authored Apr 12, 2013
60 </select>
db2008c @KaiRo-at add custom style for buttons, checkboxes and selects in menu drawer
authored Jun 7, 2015
61 </p>
62 <p>
3431f49 update cached tiles if they're older than two weeks; add a button to …
Robert Kaiser authored Dec 30, 2012
63 <input type="button" id="clearCacheButton" value="Clear Cached Maps"
64 onclick="gTileService.clearDB();">
db2008c @KaiRo-at add custom style for buttons, checkboxes and selects in menu drawer
authored Jun 7, 2015
65 </p>
c4d0569 @KaiRo-at small modifications so that at least something can work
authored Apr 18, 2013
66 <div id="uploadSettingsArea" class="debugHide">
8389557 @KaiRo-at add an upload button for OSM track upload - still doesn't work right,…
authored Apr 12, 2013
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);">
c4d0569 @KaiRo-at small modifications so that at least something can work
authored Apr 18, 2013
74 </div>
123b314 @KaiRo-at switch track and settings menus to drawers
authored Jun 6, 2015
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/>
b47b4a6 @KaiRo-at add zooming and map style selection
authored Dec 18, 2011
82 </div>
8383f14 @KaiRo-at add lantea and mandelbrot apps
authored Dec 18, 2011
83
336097e @KaiRo-at split zoom and menu areas
authored Sep 14, 2012
84 <div id="zoomArea" class="overlayArea">
85 <input type="button" id="zoomInButton" value="+"
ac45368 @KaiRo-at adjust zoom button design
authored May 1, 2015
86 onclick="zoomIn();">
87 <p id="zoomLevel">Z</p>
88 <input type="button" id="zoomOutButton" value="&minus;"
336097e @KaiRo-at split zoom and menu areas
authored Sep 14, 2012
89 onclick="zoomOut();">
90 </div>
91
c537874 @KaiRo-at support full screen mode
authored Oct 7, 2012
92 <div id="fullscreenArea" class="overlayArea">
93 <!-- other possible characters: &#x25F0; -->
94 <input type="button" id="fullscreenButton" value="&#x25A3;"
95 onclick="toggleFullscreen();">
96 </div>
97
4325517 @KaiRo-at Make upload a smoother experience with some in-app UI and enable it o…
authored Apr 18, 2013
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&hellip;</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>
ecde0af @KaiRo-at add first pieces of support for webGL maps
authored Mar 9, 2014
127 <div id="noGLwarning">
128 Unable to initialize WebGL. You need a browser that supports it.
129 </div>
4325517 @KaiRo-at Make upload a smoother experience with some in-app UI and enable it o…
authored Apr 18, 2013
130 </div>
131
68afcd9 @KaiRo-at display actions, adjust mapquest open arial URLs, don't overwrite rea…
authored Dec 16, 2012
132 <p id="action">
133 <img id="actionimg" src="style/loading_action.png">
134 <span id="actionlabel">Loading</span>&hellip;
135 </p>
b5c8513 @KaiRo-at hide copyright field as well, but make sure it's shown when we change…
authored Sep 14, 2012
136 <p id="copyright" class="overlayArea"></p>
6b1e734 @KaiRo-at try to deal with the default scaling of mobile devices, eliminate whi…
authored Mar 2, 2012
137
23cd2dc @KaiRo-at add actual maps to Lantea
authored Dec 18, 2011
138 <canvas id="map" width="500" height="500">
139 Please use a browser that supports &lt;canvas&gt; elements.
140 </canvas>
4b1d091 @KaiRo-at move track to its own canvas, make painting current position actually…
authored Nov 5, 2012
141 <canvas id="track" width="500" height="500">
142 </canvas>
23cd2dc @KaiRo-at add actual maps to Lantea
authored Dec 18, 2011
143
144 </body>
da6dad2 @KaiRo-at prepare for OAuth support but don't enable it as actually GPS trace c…
authored Mar 26, 2016
145 </html>
Something went wrong with that request. Please try again.