DESKTOP-GBVU60Q\dell 1 gadu atpakaļ
vecāks
revīzija
24380aa73f

+ 2 - 1
src/views/Main/components/layer.vue

@@ -436,11 +436,12 @@
 										if (parameterset.roll) { //以弧度为单位的滚动分量
 											_options.roll = parameterset.roll;
 										}
-
+										console.log('参数设置',_options)
 										jt3d.layer.addEntitiesGltf(_options, function(serviceId) {
 											// let flyToEntity = jt3d.LocateUtil.flyToEntityByPoints([
 											// 	parameterset.points,
 											// ], 'point');
+											console.log('添加完成')
 										});
 
 									} else {

+ 1 - 27
src/views/Main/components/map.vue

@@ -353,33 +353,7 @@
 		},
 
 		mounted() {
-			// let that = this
-			// that.entity1 = new Cesium.Entity({
-			// 	name: "add billboard",
-			// 	//位置
-			// 	position: Cesium.Cartesian3.fromDegrees(120.623, 36.9157, 100),
-			// 	//图片标签
-			// 	billboard: {
-			// 		image: 'jt3dSDK/imgs/jijing1.png',
-			// 		horizontalOrigin: Cesium.HorizontalOrigin.CENTER, //水平
-			// 		verticalOrigin: Cesium.VerticalOrigin.BOTTOM, //垂直位置
-			// 		// scale: billboard.scale, //尺寸
-			// 		// pixelOffset: new Cesium.Cartesian2(0, billboard.pixelOffset),
-			// 		disableDepthTestDistance: Number.POSITIVE_INFINITY,
-			// 		scale: 0.2,
-			// 		scaleByDistance: new Cesium.NearFarScalar(1.5e2, 1, 2400,
-			// 			1
-			// 		) //按距离缩放,即距离大于180米时,图标不显示  Cesium.NearFarScalar(near, nearValue, far, farValue)相机范围的下界。相机范围下界的值。相机范围的上限。该值位于摄像机范围的上界。
-			// 	}
-			// });
-			// setInterval(res => {
-			// 	this.isflyto = store.isflyto
-			// 	if (this.isflyto) {
-			// 		setTimeout(res => {
-			// 			this.isflyto = false
-			// 			store.isflyto = false
-			// 		})
-			// 	}
+			
 			// }, 1000)
 
 			this.init("cesiumContainer");