Merge pull request #1365 from breadoven/abo_mission_control_fix_home_issue

Mission control Home fixes
pull/1364/head^2
Paweł Spychalski 3 years ago committed by GitHub
commit 26ca959091
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -657,11 +657,15 @@ TABS.mission_control.initialize = function (callback) {
renderHomeOnMap(); renderHomeOnMap();
}); });
if (HOME.getLatMap() == 0 && HOME.getLonMap() == 0) {
HOME.setAlt("N/A");
} else {
(async () => { (async () => {
const elevationAtHome = await HOME.getElevation(globalSettings); const elevationAtHome = await HOME.getElevation(globalSettings);
$('#elevationValueAtHome').text(elevationAtHome+' m'); $('#elevationValueAtHome').text(elevationAtHome+' m');
HOME.setAlt(elevationAtHome); HOME.setAlt(elevationAtHome);
})() })()
}
if (globalSettings.mapProviderType == 'bing') { if (globalSettings.mapProviderType == 'bing') {
$('#elevationEarthModelclass').fadeIn(300); $('#elevationEarthModelclass').fadeIn(300);
@ -2161,7 +2165,9 @@ TABS.mission_control.initialize = function (callback) {
} }
redrawLayers(); redrawLayers();
if (!(HOME.getLatMap() == 0 && HOME.getLonMap() == 0)) {
updateHome(); updateHome();
}
updateTotalInfo(); updateTotalInfo();
let sFilename = String(filename.split('\\').pop().split('/').pop()); let sFilename = String(filename.split('\\').pop().split('/').pop());
GUI.log(sFilename+' has been loaded successfully !'); GUI.log(sFilename+' has been loaded successfully !');

Loading…
Cancel
Save