|
@@ -105,10 +105,10 @@
|
|
*/
|
|
*/
|
|
pickUp() {
|
|
pickUp() {
|
|
let _self = this;
|
|
let _self = this;
|
|
-
|
|
|
|
|
|
+
|
|
//移除左键单击事件
|
|
//移除左键单击事件
|
|
if (jt3d.handlerLeftClick) {
|
|
if (jt3d.handlerLeftClick) {
|
|
- jt3d.handlerLeftClick.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
|
|
|
|
+ jt3d.handlerLeftClick.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
}
|
|
}
|
|
|
|
|
|
jt3d.CommonTools._sketchViewModel._lineLabel = _self.pickCoordsLable.toString();
|
|
jt3d.CommonTools._sketchViewModel._lineLabel = _self.pickCoordsLable.toString();
|
|
@@ -117,7 +117,7 @@
|
|
_self.pickCoordsArray.push(gPoint.lng.toFixed(6) + ',' + gPoint.lat.toFixed(6) + ',' + gPoint.height.toFixed(2)) + ";";
|
|
_self.pickCoordsArray.push(gPoint.lng.toFixed(6) + ',' + gPoint.lat.toFixed(6) + ',' + gPoint.height.toFixed(2)) + ";";
|
|
_self.pickCoords = _self.pickCoordsArray.join(";\n");
|
|
_self.pickCoords = _self.pickCoordsArray.join(";\n");
|
|
_self.pickCoordsLable++;
|
|
_self.pickCoordsLable++;
|
|
-
|
|
|
|
|
|
+
|
|
//还原左键单击事件
|
|
//还原左键单击事件
|
|
_self.$parent.$parent.$refs.refMap3d.clickEntity(jt3d);
|
|
_self.$parent.$parent.$refs.refMap3d.clickEntity(jt3d);
|
|
},
|
|
},
|
|
@@ -263,15 +263,16 @@
|
|
flyToEntity(entity) {
|
|
flyToEntity(entity) {
|
|
let flyToEntity = jt3d.LocateUtil.flyToEntity(entity, {
|
|
let flyToEntity = jt3d.LocateUtil.flyToEntity(entity, {
|
|
duration: 3,
|
|
duration: 3,
|
|
- heading: 0,
|
|
|
|
- pitch: -60,
|
|
|
|
- range: 0
|
|
|
|
|
|
+ heading: 200,
|
|
|
|
+ pitch: -80,
|
|
|
|
+ range: 1000
|
|
});
|
|
});
|
|
- flyToEntity.then(function(entity11) {
|
|
|
|
- // alert(1111)
|
|
|
|
|
|
+ flyToEntity.then(function(entity) {
|
|
|
|
+ if (entity.point) {
|
|
|
|
+ jt3d._viewer.entities.remove(entity);
|
|
|
|
+ }
|
|
});
|
|
});
|
|
},
|
|
},
|
|
-
|
|
|
|
},
|
|
},
|
|
|
|
|
|
mounted() {
|
|
mounted() {
|