https://developer.mozilla.org/en/Mobile/Viewport_meta_tag -->
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Lantea Maps</title>
- <script src="js/osmauth.js" type="application/javascript;version=1.8"></script>
<script src="js/map.js" type="application/javascript;version=1.8"></script>
<script src="js/ui.js" type="application/javascript;version=1.8"></script>
+ <script src="js/library.js" type="application/javascript;version=1.8"></script>
<script src="js/piwik.js" async="" defer=""></script>
<link rel="stylesheet" href="style/lantea.css">
<link rel="shortcut icon" href="style/lanteaIcon16.png" type="image/png">
<input type="button" id="clearTrackButton" value="Clear"
onclick="clearTrack();">
</p>
+<p id="libraryShowLine" class="hidden">
+<input type="button" id="libraryShowButton" value="View uploaded tracks"
+ onclick="showLibrary();">
+</p>
<div id="trackDialogArea" class="hidden">
<div id="uploadDialog">
-<p class="dialogTitle">Upload Track to Lantea Maps Server:</p>
+<p class="subTitle">Upload Track to Lantea Maps Server:</p>
<label for="uploadPublic">Visibility:</label>
<select id="uploadPublic">
<option value="true">Public Domain</option>
</select>
<p class="dialogHelp">Public Domain tracks can be forwarded by the server
operator to any other services, e.g. OpenStreetMap.</p>
-<label for="uploadDesc">Description:</label>
+<p>
+<label for="uploadDesc">Comment:</label>
<input type="text" id="uploadDesc" maxlength="255" size="25"
value="Lantea Maps">
+</p>
+<p>
<input type="button" id="uploadDialogUploadButton" value="Upload Track"
onclick="uploadTrack();">
<input type="button" id="uploadDialogCancelButton" value="Cancel"
onclick="cancelTrackDialog();">
+</p>
</div>
<div id="uploadStatus">
<p class="dialogTitle">Track Upload to Lantea Maps Server</p>
<input type="button" id="clearCacheButton" value="Clear Cached Maps"
onclick="gTileService.clearDB();">
</p>
-<div id="uploadSettingsArea" class="debugHide">
-<p class="settingsSubTitle">OpenStreetMap Track Upload:</p>
-<label for="uploadUser">User name:</label>
-<input type="text" id="uploadUser" maxlength="255"
- onchange="setUploadField(this);"><br/>
-<label for="uploadPwd">Password:</label>
-<input type="password" id="uploadPwd" maxlength="255"
+<div id="uploadSettingsArea">
+<p class="subTitle">Track Upload:</p>
+<p>
+<label for="uploadDevName">Device name:</label>
+<input type="text" id="uploadDevName" maxlength="255" placeholder="My Device"
onchange="setUploadField(this);">
+</p>
+<p class="dialogHelp">The device name enables you to tell apart tracks you may
+upload from multiple devices.</p>
</div>
</div>
</div>
</div>
+<div id="libraryArea" class="hidden">
+The following tracks are saved on the Lantea Maps Server:
+<ul id="libTrackList">
+</ul>
+<p id="libTrackPages" class="hidden"></p>
+<p id="libButtonLine"><button id="libCloseButton">Close</button></p>
+</div>
+
<p id="action">
<img id="actionimg" src="style/loading_action.png">
<span id="actionlabel">Loading</span>…