mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-21 15:25:19 +03:00
Update mission_control.js
This commit is contained in:
parent
1d33014271
commit
dbb9bd1c0c
1 changed files with 9 additions and 5 deletions
|
@ -657,11 +657,15 @@ TABS.mission_control.initialize = function (callback) {
|
||||||
renderHomeOnMap();
|
renderHomeOnMap();
|
||||||
});
|
});
|
||||||
|
|
||||||
(async () => {
|
if (HOME.getLatMap() == 0 && HOME.getLonMap() == 0) {
|
||||||
const elevationAtHome = await HOME.getElevation(globalSettings);
|
HOME.setAlt("N/A");
|
||||||
$('#elevationValueAtHome').text(elevationAtHome+' m');
|
} else {
|
||||||
HOME.setAlt(elevationAtHome);
|
(async () => {
|
||||||
})()
|
const elevationAtHome = await HOME.getElevation(globalSettings);
|
||||||
|
$('#elevationValueAtHome').text(elevationAtHome+' m');
|
||||||
|
HOME.setAlt(elevationAtHome);
|
||||||
|
})()
|
||||||
|
}
|
||||||
|
|
||||||
if (globalSettings.mapProviderType == 'bing') {
|
if (globalSettings.mapProviderType == 'bing') {
|
||||||
$('#elevationEarthModelclass').fadeIn(300);
|
$('#elevationEarthModelclass').fadeIn(300);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue