projects
/
lantea.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update cached tiles if they're older than two weeks; add a button to clear the cache
[lantea.git]
/
index.html
diff --git
a/index.html
b/index.html
index d5a79757b215420a62ef5709f07fb2f4397ce674..1f95b6e77679c5c6ce02320f8b68694740baefd3 100644
(file)
--- a/
index.html
+++ b/
index.html
@@
-6,12
+6,12
@@
<html manifest="manifest.appcache">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<html manifest="manifest.appcache">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <!-- try to
counts default scaling on mobile, see
+ <!-- try to
force a 1:1 scaling on mobile, see
https://developer.mozilla.org/en/Mobile/Viewport_meta_tag -->
https://developer.mozilla.org/en/Mobile/Viewport_meta_tag -->
- <meta name="viewport" content="width=device-width, height=device-height, initial-scale=
.6667, maximum-scale=.6667
">
+ <meta name="viewport" content="width=device-width, height=device-height, initial-scale=
1, maximum-scale=1
">
<title>Lantea Maps</title>
<title>Lantea Maps</title>
- <script src="js/map.js"></script>
- <script src="js/ui.js"></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>
<link rel="stylesheet" href="style/lantea.css">
<link rel="shortcut icon" href="style/lanteaIcon16.png" type="image/png">
</head>
<link rel="stylesheet" href="style/lantea.css">
<link rel="shortcut icon" href="style/lanteaIcon16.png" type="image/png">
</head>
@@
-41,7
+41,9
@@
Map style:
<select id="mapSelector" onchange="setMapStyle();">
<!-- option value="osm_mapnik">OpenStreetMap (Mapnik)</option -->
Map style:
<select id="mapSelector" onchange="setMapStyle();">
<!-- option value="osm_mapnik">OpenStreetMap (Mapnik)</option -->
-</select>
+</select><br/>
+<input type="button" id="clearCacheButton" value="Clear Cached Maps"
+ onclick="gTileService.clearDB();">
</fieldset>
</div>
</fieldset>
</div>
@@
-59,7
+61,10
@@
Map style:
onclick="toggleFullscreen();">
</div>
onclick="toggleFullscreen();">
</div>
-<p id="debug" class="debugHide"></p>
+<p id="action">
+ <img id="actionimg" src="style/loading_action.png">
+ <span id="actionlabel">Loading</span>…
+</p>
<p id="copyright" class="overlayArea"></p>
<canvas id="map" width="500" height="500">
<p id="copyright" class="overlayArea"></p>
<canvas id="map" width="500" height="500">