File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1010
1111 < script >
1212 window . onload = ( ) => {
13- let camera = $ ( "#world-camera" ) ;
14-
1513 let points = staticLoadPlaces ( ) ;
1614 renderPlaces ( points ) ;
1715 } ;
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 ) ;
You can’t perform that action at this time.
0 commit comments