clicking on compass sets the heading direction to north

This commit is contained in:
Balázs Vigh 2021-04-29 12:39:44 +02:00
parent 2a3f2212a7
commit b22f13887f
2 changed files with 5 additions and 1 deletions
public/static/js
views

@ -955,4 +955,8 @@
document.getElementById('returnToStart').onclick = function () {
Game.loadPano(Game.panoId, Game.pov);
}
document.getElementById('compassContainer').onclick = function () {
Game.panorama.setPov({ heading: 0, pitch: Game.panorama.getPov().pitch });
}
})();

@ -60,7 +60,7 @@
</div>
</div>
<div id="navigation">
<div class="navigationItem">
<div id="compassContainer" class="navigationItem">
<div>
<img src="<?= $_ENV['STATIC_ROOT'] ?>/img/circle_background.svg?rev=<?= REVISION ?>" alt="Circle Background" class="circleBackground" />
</div>