@aibee/owlly-navigation
v1.0.30
Published
Owlly SDK for navigation
Readme
Owlly Navigation
配置说明
存在不同配置的项目,放到src/config文件夹下,在打包是配置到src/cofnig/config.js内。
API文档
Functions
initVROnLine(data)
初始化VR线上数据
Kind: global function
| Param | Type | | --- | --- | | data | * |
initVROffLine(jsonStr, offlinePath)
初始化VR线下数据
Kind: global function
| Param | Type | Description | | --- | --- | --- | | jsonStr | * | {config: "singledata/zh_hy/Po3o8Yy95IbIMZAx.json"} | | offlinePath | string | 离线路径 |
initVR(data, domContainer, options)
Kind: global function
| Param | Type | Description | | --- | --- | --- | | data | * | 数据 | | domContainer | HTMLElement | dom容器 | | options | Object | string | 配置 | | options.logLevel | Number | log等级 | | options.offlinePath | string | 离线路径 |
initPath(path, pathParams)
初始化路径
Kind: global function
| Param | Type | | --- | --- | | path | Array.<Object> | | path[].x; | number | | path[].y; | number | | path[].vr_id | string | | pathParams | Object | | pathParams.offset | Object | | pathParams.offset.x; | number | | pathParams.offset.y; | number | | pathParams.color | number | | pathParams.width | number | | pathParams.image | string |
moveToPos(pos, selfDir, tdir)
移动到位置
Kind: global function
| Param | Type | Description | | --- | --- | --- | | pos | Object | 位置 pos.x pos.y | | selfDir | Boolean | 全景点自身方向 | | tdir | Object | 方向 | | tdir.x; | number | | | tdir.y; | number | |
moveToGisPos(pos, animate)
移动到gis位置
Kind: global function
| Param | Type | Description | | --- | --- | --- | | pos | Object | 位置 pos.x pos.y pos.vr_id | | animate | boolean | 动画 |
runPath(path, pathParams, onStatus)
初始化路径
Kind: global function
| Param | Type | | --- | --- | | path | Array.<Object> | | path[].x; | number | | path[].y; | number | | path[].vr_id | string | | pathParams | Object | | pathParams.offset | Object | | pathParams.offset.x; | number | | pathParams.offset.y; | number | | pathParams.color | number | | pathParams.width | number | | pathParams.image | string | | onStatus | function |
runGisPath(path, pathParams, onStatus)
执行路径
Kind: global function
| Param | Type | Description | | --- | --- | --- | | path | Array.<Object> | | | path[].x; | number | | | path[].y; | number | | | path[].vr_id | string | | | pathParams | Object | | | pathParams.durTime | number | 间隔 | | pathParams.animation | number | 动画 | | onStatus | function | |
testFunctionInit()
测试方法
Kind: global function
