diff --git a/manifest.json b/manifest.json
index 348c7939..5f6d24ea 100644
--- a/manifest.json
+++ b/manifest.json
@@ -25,6 +25,7 @@
"permissions": [
"https://www.google-analytics.com/",
+ "https://maps.googleapis.com/*",
"https://*.github.com/",
"https://*.githubusercontent.com/",
"http://*.baseflight.net/",
diff --git a/tabs/gps.css b/tabs/gps.css
index c003b05c..5fe96efd 100644
--- a/tabs/gps.css
+++ b/tabs/gps.css
@@ -27,8 +27,7 @@
float: left;
}
-.tab-gps #map {
- height: 100%;
+.tab-gps #waiting {
width: 100%;
}
@@ -37,6 +36,11 @@
width: 100%;
}
+.tab-gps #loadmap {
+ height: 100%;
+ width: 100%;
+}
+
progress[value]::-webkit-progress-bar {
background-color: #d2d2d2;
diff --git a/tabs/gps.html b/tabs/gps.html
index b4335d2d..483f8699 100644
--- a/tabs/gps.html
+++ b/tabs/gps.html
@@ -147,14 +147,18 @@
+
please check your internet connection
-
- Online check success! Map can be loaded here!
-
-
+
+ Online check success! Waiting for GPS 3D fix…
+
+
+
diff --git a/tabs/gps.js b/tabs/gps.js
index e6cd8aaf..b5c28843 100644
--- a/tabs/gps.js
+++ b/tabs/gps.js
@@ -76,23 +76,30 @@ TABS.gps.initialize = function (callback) {
if (navigator.onLine) {
console.log('Online');
$('#connect').hide();
- $('#map').show();
+ $('#waiting').show();
+ $('#loadmap').show();
+
} else {
console.log('Offline');
$('#connect').show();
- $('#map').hide();
+ $('#waiting').hide();
+ $('#loadmap').hide();
+
}
$("#check").on('click',function(){
if (navigator.onLine) {
console.log('Online');
$('#connect').hide();
- $('#map').show();
+ $('#waiting').show();
+ $('#loadmap').show();
} else {
console.log('Offline');
$('#connect').show();
- $('#map').hide();
+ $('#waiting').hide();
+ $('#loadmap').hide();
+
}
});