Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
MascheroniNatan committed Oct 25, 2024
1 parent a880747 commit 7797ef8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
</head>
<body style="margin: 0; overflow: hidden;">
<a-scene embedded arjs="sourceType: webcam;">
<a-entity gps-entity-place></a-entity>
<a-camera gps-camera="simulateAltitude: false; positionMinAccuracy: 100;"></a-camera>
<a-entity gps-new-entity-place></a-entity>
<a-box material="color: green;" scale="25 25 25" gps-entity-place="latitude: 45.601038; longitude: 8.8473955;"></a-box>
<a-camera gps-new-camera="simulateAltitude: false; positionMinAccuracy: 600; alert: true"></a-camera>
</a-scene>

<script>
Expand All @@ -33,12 +34,6 @@
console.error("Errore GPS:", error);
});

// Test aggiuntivo: forza una richiesta di geolocalizzazione manualmente ogni 5 secondi
setInterval(() => {
navigator.geolocation.getCurrentPosition(function(position) {
console.log("Geolocalizzazione manuale: ", position);
});
}, 5000);
</script>
</body>
</html>

0 comments on commit 7797ef8

Please sign in to comment.