Skip to content

Commit 826a9bc

Browse files
committed
📝 update: optimize readme
1 parent ed05653 commit 826a9bc

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ var { tpanorama,tpanoramaSetting} = require('tpanorama');
4747

4848
# 1.全景展示
4949

50+
![](./img/qj_15_qj.gif)
51+
5052
## 1.1 参数说明
5153

5254
参数名称 | 类型 | 说明
@@ -59,7 +61,8 @@ heightSegments |num| 垂直切段数(值小粗糙速度快,值大精细速
5961
pRadius |num| 全景球的半径,影响视觉效果,推荐使用默认值
6062
minFocalLength |num| 镜头最小拉近距离
6163
maxFocalLength |num| 镜头最大拉近距离
62-
showlable |'show'/'click'| 显示标记的方式,分为直接显示和点击显示
64+
spaire |'label'/'icon'| 显示标记的内容,文字或图标
65+
onClick|func|点击标记的回调函数
6366

6467
## 1.2 公用方法
6568

@@ -97,7 +100,7 @@ clean | 清除全景对象
97100

98101
修改某些参数
99102

100-
```
103+
```js
101104
opt.showlable = 'click';
102105
opt.lables = [{position:{lon:180,lat:0},logoUrl:'img/logo.png',text:'点击了这个标记'}];
103106
opt.url = 'img/p1.png';
@@ -106,10 +109,10 @@ tp.config(opt);
106109
tp.init();
107110
```
108111

109-
![这里写图片描述](http://chuantu.biz/t6/42/1504930774x1929267553.png)
110-
111112
# 2.添加全景标记工具
112113

114+
![](./img/qj_17_qj.gif)
115+
113116
在展示全景的时候,你或许会对标记的位置产生了疑问,如何确定标记的位置?
114117

115118
我们可以使用类似经纬度的参数来表达它,注意这里使用的经纬度并不是真正的经纬度,是我们根据地球的经纬度模拟出来的一个参数。
@@ -196,7 +199,6 @@ listen | 对全景对象监听事件
196199
```
197200

198201

199-
![这里写图片描述](http://chuantu.biz/t6/42/1504930807x2890149554.png)
200202

201203
### 2.3.2 自定义事件
202204

0 commit comments

Comments
 (0)