mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-16 04:45:18 +03:00
MP version 1.8
This commit is contained in:
parent
2fb3cacf9a
commit
0087e53f57
2 changed files with 11 additions and 8 deletions
|
@ -138,7 +138,6 @@ let Waypoint = function (number, action, lat, lon, alt=0, p1=0, p2=0, p3=0, endM
|
|||
|
||||
self.getElevation = async function (globalSettings) {
|
||||
let elevation;
|
||||
console.log('http://dev.virtualearth.net/REST/v1/Elevation/List?points='+self.getLatMap()+','+self.getLonMap()+'&heights=ellipsoid&key='+globalSettings.mapApiKey);
|
||||
if (globalSettings.mapProviderType == 'bing') {
|
||||
const response = await fetch('http://dev.virtualearth.net/REST/v1/Elevation/List?points='+self.getLatMap()+','+self.getLonMap()+'&heights=ellipsoid&key='+globalSettings.mapApiKey);
|
||||
const myJson = await response.json();
|
||||
|
@ -147,8 +146,6 @@ let Waypoint = function (number, action, lat, lon, alt=0, p1=0, p2=0, p3=0, endM
|
|||
else {
|
||||
elevation = "NA";
|
||||
}
|
||||
//$('#elevationValueAtWP').text(elevation);
|
||||
console.log("getElevation");
|
||||
return elevation;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue