首页 文章

Wikitude SDK - 范围

提问于
浏览
0

我正在使用Wikitude API为Android开发AR应用程序 . 我想定义搜索poi的范围,但我无法在任何地方找到它 . api是否允许定义范围?

2 回答

  • 1

    查看Wikitude参考库中的ActionRanges . 这就是您在半径和地理围栏方面所寻求的 .

    http://www.wikitude.com/external/doc/documentation/latest/Reference/JavaScript%20Reference/ActionRange.html

    actionRange = new AR.ActionRange(geoObject, 500);
    

    从文档中

    AR.ActionRange ( geoLocation , radius , options )
    Parameters:
    geoLocation <GeoLocation> a single GeoLocation defining the center point of the circle.
    radius <float> the radius of the ActionRange in meters.
    options <object> Setup-Parameters to customize additional object properties.
    
  • 0

    您提到的Android API已弃用,并提供非常有限的功能集 .

    请看http://www.wikitude.com/developer/architect

    在这里,您可以找到支持离线使用的最新版本的SDK,以及大量的自定义设置(动画,html,CSS,JS ......)它基于JS,允许您构建移动AR应用程序而无需任何传感器处理 .

    亲切的问候,Andi(来自Wikitude的Android团队)

相关问题