From ce832ad0f01e319b9e4a426f56dee3b004bac259 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 31 Jul 2024 09:13:56 +0200 Subject: [PATCH] =?UTF-8?q?Replace=20"deg"=20as=20unit=20by=20"=C2=B0"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/leaflet/geocoding.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/leaflet/geocoding.js b/assets/js/leaflet/geocoding.js index b65122aaf..88cbf47f7 100644 --- a/assets/js/leaflet/geocoding.js +++ b/assets/js/leaflet/geocoding.js @@ -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 = '';