Show bearing in position popup

This commit is contained in:
Bartek Fabiszewski 2020-02-16 23:06:07 +01:00
parent 366243c3e9
commit 7a0f50e995
3 changed files with 3 additions and 0 deletions

1
images/bearing.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7.72 12L12 .152 16.279 12z"/><path d="M14.854 13L12 20.904 9.144 13h5.71m1.425-1H7.72L12 23.848 16.279 12z"/></svg>

After

Width:  |  Height:  |  Size: 208 B

View File

@ -188,6 +188,7 @@ export default class MapViewModel extends ViewModel {
${(pos.speed !== null) ? `<img class="icon" alt="${$._('speed')}" title="${$._('speed')}" src="images/speed_dark.svg">${$.getLocaleSpeed(pos.speed, true)}<br>` : ''}
${(pos.altitude !== null) ? `<img class="icon" alt="${$._('altitude')}" title="${$._('altitude')}" src="images/altitude_dark.svg">${$.getLocaleAltitude(pos.altitude, true)}<br>` : ''}
${(pos.accuracy !== null) ? `<img class="icon" alt="${$._('accuracy')}" title="${$._('accuracy')}" src="images/accuracy_dark.svg">${$.getLocaleAccuracy(pos.accuracy, true)}${provider}<br>` : ''}
${(pos.bearing !== null) ? `<img class="icon" alt="${$._('bearing')}" title="${$._('bearing')}" src="images/bearing.svg" style="transform: rotate(${pos.bearing}deg) scale(1.2);">${pos.bearing}°<br>` : ''}
<img class="icon" alt="${$._('position')}" title="${$._('position')}" src="images/position.svg">${$.getLocaleCoordinates(pos)}<br>
</div>${stats}</div>
<div id="pfooter"><div>${$._('pointof', id + 1, count)}</div><div>${editLink}</div></div>`;

View File

@ -64,6 +64,7 @@ $lang["speed"] = "Speed";
$lang["accuracy"] = "Accuracy";
$lang["position"] = "Position";
$lang["altitude"] = "Altitude";
$lang["bearing"] = "Bearing";
$lang["ttime"] = "Total time";
$lang["aspeed"] = "Average speed";
$lang["tdistance"] = "Total distance";