diff --git a/www/index.html b/www/index.html index e1f652b..558b881 100644 --- a/www/index.html +++ b/www/index.html @@ -27,7 +27,7 @@ - + TerranQuest diff --git a/www/js/location.js b/www/js/location.js index 3d4699e..3d4085b 100644 --- a/www/js/location.js +++ b/www/js/location.js @@ -70,7 +70,7 @@ var placeLayer = L.geoJson( }); } });//.addTo(map); - + var placemarkers = L.markerClusterGroup({ spiderfyDistanceMultiplier: 2, showCoverageOnHover: false, @@ -226,18 +226,16 @@ function onError(error) { $('#loading-error').text("Check your device's network and location settings, and ensure a clear view of the sky."); } -function popGPS() { +function popDiagData() { navigator.notification.alert("Latitude: " + latitude + "\nLongitude: " + longitude + "\nAccuracy: " + gpsaccuracy + + "\nWeather: " + rawWeatherData.temperature + " F, " + rawWeatherData.summary + ", " + rawWeatherData.windSpeed + " mph" + "\nTerrain: " + terraintypename + " (" + terraintypeid + ")", null, - "GPS Information", + "Information", "Close"); } -$('#terrain-image').click(function () { - popGPS(); -}); // Initial GPS position and stuff navigator.geolocation.getCurrentPosition(updateTerrain, onError, {timeout: 10000, enableHighAccuracy: true}); // Update position diff --git a/www/js/user.js b/www/js/user.js index 59674f3..ba84c0a 100644 --- a/www/js/user.js +++ b/www/js/user.js @@ -20,6 +20,7 @@ // Profile, stats, and chat stuff ////////////////////////////////////////////// +var rawWeatherData = []; /* * Handles general server communication. @@ -79,6 +80,7 @@ function getWeather() { long: longitude }, function (data) { var currently = data.currently; + rawWeatherData = currently; skycons.set("weathericon", currently.icon); }); } diff --git a/www/screens/home.html b/www/screens/home.html index 6bda8c4..78cff8c 100644 --- a/www/screens/home.html +++ b/www/screens/home.html @@ -43,7 +43,7 @@

- +