浏览代码

漫游动画

DESKTOP-CRQ4N2U\jintian 1 年之前
父节点
当前提交
9c0ac402d7
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. 7 3
      src/views/Map3d/components/TrackRoam.vue

+ 7 - 3
src/views/Map3d/components/TrackRoam.vue

@@ -136,9 +136,9 @@
 						_self.Roaming = new _self.jt3dSDK.Roaming(jt3d._viewer, cartesian3d, {
 							time: 360,
 							role: 2,
-							label: {
-								text: "lineName",
-							}
+							// label: {
+							// 	text: "lineName",
+							// }
 						});
 						_self.isPause = true;
 						_self.isNew = false;
@@ -193,10 +193,14 @@
 						break;
 					case 2:
 						this.roam.role = Number(type);
+						this.Roaming.followedX = -100;
+						this.Roaming.followedZ = 50;
 						this.Roaming.initRole(2);
 						break;
 					case 3:
 						this.roam.role = Number(type);
+						this.Roaming.followedX = -50;
+						this.Roaming.followedZ = 250;
 						this.Roaming.initRole(3);
 						break;
 				}