无法使用 AR.js 使用 GPS 位置显示框

问题描述

我只想使用 gps 坐标在我的头顶显示一个框,但它没有按预期工作,我决定使用模拟纬度经度属性来测试它是否是我的硬编码 gps 坐标的问题,但我仍然不能让它起作用。 我的代码如下

<!DOCTYPE html>
<html>
  <head>
    <Meta charset="utf-8" />
    <Meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>GeoAR.js demo</title>
    <script src="https://aframe.io/releases/1.1.0/aframe.min.js"></script>
    <script src="https://unpkg.com/aframe-look-at-component@0.8.0/dist/aframe-look-at-component.min.js"></script>
    <script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js"></script>
    
  </head>

  <body style="margin: 0; overflow: hidden;">
    <a-scene
      vr-mode-ui="enabled: false"
      embedded
      arjs="sourceType: webcam; debugUIEnabled: false;"
    >
    
    <a-Box scale="20 20 20" position="0 50 0" gps-entity-place="longitude: 23.55823; latitude: 87.31361;" color="orange"></a-Box>
    
    <a-camera gps-camera="simulateLatitude: 23.55822; simulateLongitude: 87.31360;simulatealtitude: 0.5" rotation-reader> </a-camera>
    </a-scene>
  </body>
</html>

谁能帮我看看为什么它不起作用?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...