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/. -->
6 <html manifest="manifest.appcache">
8 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
9 <!-- try to force a 1:1 scaling and disable pinch-zoom on mobile, see
10 https://developer.mozilla.org/en/Mobile/Viewport_meta_tag -->
11 <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, user-scalable=no">
12 <title>Lantea Maps</title>
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>
15 <link rel="stylesheet" href="style/lantea.css">
16 <link rel="shortcut icon" href="style/lanteaIcon16.png" type="image/png">
21 <div id="menuArea" class="overlayArea">
22 <input type="button" id="trackButton" value="Track"
23 onclick="toggleTrackArea();"><br/>
24 <fieldset id="trackArea"><legend>Track</legend>
25 <p id="trackData"><span id="trackLength">0</span> km,
26 <span id="trackDuration">0</span> min</p>
27 <input type="button" id="saveTrackButton" value="Save"
28 onclick="saveTrack();">
29 <input type="button" id="dumpTrackButton" value="Dump"
30 onclick="saveTrackDump();" class="debugHide">
31 <input type="button" id="uploadTrackButton" value="Upload" disabled="true"
32 onclick="showUploadDialog();">
33 <input type="button" id="clearTrackButton" value="Clear"
34 onclick="clearTrack();"><br/>
35 <input type="checkbox" id="trackCheckbox"
36 onchange="setTracking(this);">
37 <label for="trackCheckbox">Enable tracking</label><br/>
38 <input type="checkbox" id="centerCheckbox"
39 onchange="setCentering(this);">
40 <label for="centerCheckbox">Center Map</label><br/>
42 <input type="button" id="settingsButton" value="Settings"
43 onclick="toggleSettings();"><br/>
44 <fieldset id="settingsArea"><legend>Settings</legend>
45 <label for="mapSelector">Map style:</label>
46 <select id="mapSelector" onchange="setMapStyle();">
47 <!-- option value="osm_mapnik">OpenStreetMap (Mapnik)</option -->
50 <input type="button" id="clearCacheButton" value="Clear Cached Maps"
51 onclick="gTileService.clearDB();">
52 <div id="uploadSettingsArea" class="debugHide">
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);">
64 <div id="zoomArea" class="overlayArea">
65 <input type="button" id="zoomInButton" value="+"
66 onclick="zoomIn();"><br/>
67 <span id="zoomLevel">Z</span><br/>
68 <input type="button" id="zoomOutButton" value="-"
72 <div id="fullscreenArea" class="overlayArea">
73 <!-- other possible characters: ◰ -->
74 <input type="button" id="fullscreenButton" value="▣"
75 onclick="toggleFullscreen();">
78 <div id="dialogArea" class="hidden">
79 <div id="uploadDialog">
80 <p class="dialogTitle">Upload Track to OpenStreetMap:</p>
81 <label for="uploadVisibility">Visibility:</label>
82 <select id="uploadVisibility">
83 <option value="identifiable">Identifiable</option>
84 <option value="private">Private</option>
86 <label for="uploadDesc">Description:</label>
87 <input type="text" id="uploadDesc" maxlength="255" size="25"
89 <p class="dialogHelp">You will be asked for your OSM user name and password
90 when clicking "Upload Track".</p>
91 <input type="button" id="uploadDialogUploadButton" value="Upload Track"
92 onclick="uploadTrack();">
93 <input type="button" id="uploadDialogCancelButton" value="Cancel"
94 onclick="cancelDialog();">
96 <div id="uploadStatus">
97 <p class="dialogTitle">Track Upload to OpenStreetMap</p>
98 <p id="uploadInProgress"><img id="actionimg" src="style/loading_action.png">
99 Upload in progress…</p>
100 <p id="uploadSuccess" style="display:none;">Track upload successful!</p>
101 <p id="uploadFailed" style="display:none;">Track upload failed.</p>
102 <p id="uploadError" style="display:none;">Error:<br>
103 <span id="uploadErrorMsg"></span></p>
104 <input type="button" id="uploadStatusCloseButton" value="Close"
105 onclick="cancelDialog();" disabled="true">
107 <div id="noGLwarning">
108 Unable to initialize WebGL. You need a browser that supports it.
113 <img id="actionimg" src="style/loading_action.png">
114 <span id="actionlabel">Loading</span>…
116 <p id="copyright" class="overlayArea"></p>
118 <canvas id="map" width="500" height="500">
119 Please use a browser that supports <canvas> elements.
121 <canvas id="track" width="500" height="500">