1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-14 11:59:51 +03:00

Change Bing SL to Ellipsoid datum

This commit is contained in:
breadoven 2023-11-20 22:37:10 +00:00
parent be88b5af84
commit 41701bffe1
3 changed files with 4 additions and 4 deletions

View file

@ -4295,8 +4295,8 @@
"missionMultiAddNewMission": { "missionMultiAddNewMission": {
"message": "Add New Mission" "message": "Add New Mission"
}, },
"missionLevelEarthDEMModel": { "missionEllipsoidEarthDEMModel": {
"message": "Use Sea Level Earth DEM Model: " "message": "Use Ellipsoid Earth DEM Model: "
}, },
"SafehomeLegend": { "SafehomeLegend": {
"message": "Legend : " "message": "Legend : "

View file

@ -139,7 +139,7 @@ let Waypoint = function (number, action, lat, lon, alt=0, p1=0, p2=0, p3=0, endM
self.getElevation = async function (globalSettings) { self.getElevation = async function (globalSettings) {
let elevation = "N/A"; let elevation = "N/A";
if (globalSettings.mapProviderType == 'bing') { if (globalSettings.mapProviderType == 'bing') {
let elevationEarthModel = $('#elevationEarthModel').prop("checked") ? "sealevel" : "ellipsoid"; let elevationEarthModel = $('#elevationEarthModel').prop("checked") ? "ellipsoid" : "sealevel";
const response = await fetch('http://dev.virtualearth.net/REST/v1/Elevation/List?points='+self.getLatMap()+','+self.getLonMap()+'&heights='+elevationEarthModel+'&key='+globalSettings.mapApiKey); const response = await fetch('http://dev.virtualearth.net/REST/v1/Elevation/List?points='+self.getLatMap()+','+self.getLonMap()+'&heights='+elevationEarthModel+'&key='+globalSettings.mapApiKey);
const myJson = await response.json(); const myJson = await response.json();

View file

@ -166,7 +166,7 @@
</div> </div>
</div> </div>
<div class="point" id="elevationEarthModelclass" style="display: none"> <div class="point" id="elevationEarthModelclass" style="display: none">
<label class="spacer_box_title" for="elevationEarthModel" data-i18n="missionLevelEarthDEMModel"></label> <label class="spacer_box_title" for="elevationEarthModel" data-i18n="missionEllipsoidEarthDEMModel"></label>
<input id="elevationEarthModel" type="checkbox" value="0" class="togglemedium" required> <input id="elevationEarthModel" type="checkbox" value="0" class="togglemedium" required>
</div> </div>
</div> </div>