Feature In-Game Compass #27
@ -955,4 +955,8 @@
|
|||||||
document.getElementById('returnToStart').onclick = function () {
|
document.getElementById('returnToStart').onclick = function () {
|
||||||
Game.loadPano(Game.panoId, Game.pov);
|
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>
|
</div>
|
||||||
<div id="navigation">
|
<div id="navigation">
|
||||||
<div class="navigationItem">
|
<div id="compassContainer" class="navigationItem">
|
||||||
<div>
|
<div>
|
||||||
<img src="<?= $_ENV['STATIC_ROOT'] ?>/img/circle_background.svg?rev=<?= REVISION ?>" alt="Circle Background" class="circleBackground" />
|
<img src="<?= $_ENV['STATIC_ROOT'] ?>/img/circle_background.svg?rev=<?= REVISION ?>" alt="Circle Background" class="circleBackground" />
|
||||||
|
|||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user
So I meant here that this should have the id:
<img id="compass" ...
It is not a practical issue but for me it seems to be better if not the whole parent div rotates.