Replace "deg" as unit by "°"

This commit is contained in:
phl0
2024-07-31 09:13:56 +02:00
parent cd9a096feb
commit ce832ad0f0

View File

@@ -90,7 +90,7 @@ function onMapMove(event) {
break;
}
$('#bearing').html(distance.deg + ' deg');
$('#bearing').html(distance.deg + '°');
$('#distance').html(Math.round(distance.distance * 10) / 10 + ' ' +unit);
};
@@ -130,7 +130,7 @@ function onMapClick(event) {
var distance = Math.round(result.distance * 10) / 10 + ' ' +unit;
var bearing = Math.round(result.deg * 10) / 10 + ' deg';
var bearing = Math.round(result.deg * 10) / 10 + '°';
var popupmessage = '<div class="popup">' +
'From gridsquare: ' + homegrid + '<br />To gridsquare: ' + locator +'<br />Distance: ' + distance+ '<br />Bearing: ' + bearing +
'</div>';