Skip to content

Commit

Permalink
Merge pull request #2043 from breadoven/abo_waypoint_bing_datum_fix
Browse files Browse the repository at this point in the history
Bing maps elevation dem datum fix
  • Loading branch information
breadoven authored Apr 28, 2024
2 parents 04f4b92 + 335d6af commit 8a372de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/waypoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ let Waypoint = function (number, action, lat, lon, alt=0, p1=0, p2=0, p3=0, endM
self.getElevation = async function (globalSettings) {
let elevation = "N/A";
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 myJson = await response.json();
Expand Down

0 comments on commit 8a372de

Please sign in to comment.