Skip to content

Commit 89862ac

Browse files
authored
use relative alt
1 parent bcb0f38 commit 89862ac

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

locatesonde.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
<script>
1212
window.onload = () => {
13-
let camera = $("#world-camera");
14-
1513
let points = staticLoadPlaces();
1614
renderPlaces(points);
1715
};
@@ -59,7 +57,8 @@
5957
// <a-entity material='color: red' geometry='primitive: box' gps-new-entity-place="latitude: <add-your-latitude>; longitude: <add-your-longitude>" scale="10 10 10"></a-entity>
6058
// <a-entity material="color: red" geometry="primitive: box" gps-new-entity-place="latitude: 41.8377295; longitude: -87.6562099; position: 0 10 0" scale="10 10 10"></a-entity>
6159
function renderPlaces(points) {
62-
let scene = document.querySelector('a-scene');
60+
let scene = document.getElementById("world-scene");
61+
let camera = document.getElementById("world-camera");
6362

6463
let camAltitude = camera.getAttribute("position").y;
6564
alert(camAltitude);

0 commit comments

Comments
 (0)