File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ var { tpanorama,tpanoramaSetting} = require('tpanorama');
47
47
48
48
# 1.全景展示
49
49
50
+ ![ ] ( ./img/qj_15_qj.gif )
51
+
50
52
## 1.1 参数说明
51
53
52
54
参数名称 | 类型 | 说明
@@ -59,7 +61,8 @@ heightSegments |num| 垂直切段数(值小粗糙速度快,值大精细速
59
61
pRadius |num| 全景球的半径,影响视觉效果,推荐使用默认值
60
62
minFocalLength |num| 镜头最小拉近距离
61
63
maxFocalLength |num| 镜头最大拉近距离
62
- showlable |'show'/'click'| 显示标记的方式,分为直接显示和点击显示
64
+ spaire |'label'/'icon'| 显示标记的内容,文字或图标
65
+ onClick|func|点击标记的回调函数
63
66
64
67
## 1.2 公用方法
65
68
@@ -97,7 +100,7 @@ clean | 清除全景对象
97
100
98
101
修改某些参数
99
102
100
- ```
103
+ ``` js
101
104
opt .showlable = ' click' ;
102
105
opt .lables = [{position: {lon: 180 ,lat: 0 },logoUrl: ' img/logo.png' ,text: ' 点击了这个标记' }];
103
106
opt .url = ' img/p1.png' ;
@@ -106,10 +109,10 @@ tp.config(opt);
106
109
tp .init ();
107
110
```
108
111
109
- ![ 这里写图片描述] ( http://chuantu.biz/t6/42/1504930774x1929267553.png )
110
-
111
112
# 2.添加全景标记工具
112
113
114
+ ![ ] ( ./img/qj_17_qj.gif )
115
+
113
116
在展示全景的时候,你或许会对标记的位置产生了疑问,如何确定标记的位置?
114
117
115
118
我们可以使用类似经纬度的参数来表达它,注意这里使用的经纬度并不是真正的经纬度,是我们根据地球的经纬度模拟出来的一个参数。
@@ -196,7 +199,6 @@ listen | 对全景对象监听事件
196
199
```
197
200
198
201
199
- ![ 这里写图片描述] ( http://chuantu.biz/t6/42/1504930807x2890149554.png )
200
202
201
203
### 2.3.2 自定义事件
202
204
You can’t perform that action at this time.
0 commit comments