Skip to content

Commit

Permalink
Merge pull request #1557 from pierotofy/unitbackfix
Browse files Browse the repository at this point in the history
unitBackward fix
  • Loading branch information
pierotofy authored Sep 18, 2024
2 parents 4c089da + f6edf82 commit 31f9399
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/static/app/js/components/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,12 @@ class Map extends React.Component {
}else if (type == "dsm" || type == "dtm"){
metaUrl += "?hillshade=6&color_map=viridis";
unitForward = value => {
return unitSystem().length(value, { fixedUnit: true }).value;
return unitSystem().elevation(value).value;
};
unitBackward = value => {
return toMetric(value).value;
let unitValue = unitSystem().elevation(0);
unitValue.value = value;
return toMetric(unitValue).value;
};
}

Expand Down

0 comments on commit 31f9399

Please sign in to comment.