diff --git a/elev/elev.js b/elev/elev.js index dd8c755..bea61fb 100644 --- a/elev/elev.js +++ b/elev/elev.js @@ -11,6 +11,14 @@ function showPosition(position) { document.getElementById("osmposition").innerHTML = lat + " " + lon; } +function getLocationFromPicker() { + prefs = get_prefs(); + coords = prefs['picker']['coord'].split(" "); + lat = parseFloat(coords[0]); + lon = parseFloat(coords[1]); + document.getElementById("osmposition").innerHTML = lat + " " + lon; +} + function in_tens(x) { return parseInt(parseInt(parseFloat(parseInt(x)) / 10)*10); } diff --git a/elev/index.html b/elev/index.html index df95e63..e373103 100644 --- a/elev/index.html +++ b/elev/index.html @@ -26,6 +26,8 @@
+
+
Max Elevation:
-
+
Radius: