|
@@ -314,27 +314,27 @@
|
|
fullMap(jt3d) {
|
|
fullMap(jt3d) {
|
|
// 初始化项目区域范围视角
|
|
// 初始化项目区域范围视角
|
|
let optionsS = {
|
|
let optionsS = {
|
|
- west: 118.0361,
|
|
|
|
- south: 36.6357,
|
|
|
|
- east: 117.081,
|
|
|
|
- north: 35.999,
|
|
|
|
|
|
+ west: 117.48752,
|
|
|
|
+ south: 36.35078,
|
|
|
|
+ east: 117.45454,
|
|
|
|
+ north: 36.32105,
|
|
isRemove: false, //定位完成后是否删除
|
|
isRemove: false, //定位完成后是否删除
|
|
duration: 3, //飞行时间
|
|
duration: 3, //飞行时间
|
|
heading: 0,
|
|
heading: 0,
|
|
pitch: -90,
|
|
pitch: -90,
|
|
- range: 155000
|
|
|
|
|
|
+ range: 5000
|
|
};
|
|
};
|
|
|
|
|
|
let optionsE = {
|
|
let optionsE = {
|
|
- west: 118.0361,
|
|
|
|
- south: 36.6357,
|
|
|
|
- east: 117.081,
|
|
|
|
- north: 35.999,
|
|
|
|
|
|
+ west: 117.48752,
|
|
|
|
+ south: 36.35078,
|
|
|
|
+ east: 117.45454,
|
|
|
|
+ north: 36.32105,
|
|
isRemove: true, //定位完成后是否删除
|
|
isRemove: true, //定位完成后是否删除
|
|
duration: 3, //飞行时间
|
|
duration: 3, //飞行时间
|
|
heading: 0,
|
|
heading: 0,
|
|
- pitch: -60,
|
|
|
|
- range: 155000
|
|
|
|
|
|
+ pitch: -40,
|
|
|
|
+ range: 5000
|
|
};
|
|
};
|
|
|
|
|
|
var fullMapPromise = jt3d.fullMap(optionsS);
|
|
var fullMapPromise = jt3d.fullMap(optionsS);
|
|
@@ -353,33 +353,7 @@
|
|
},
|
|
},
|
|
|
|
|
|
mounted() {
|
|
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)
|
|
// }, 1000)
|
|
|
|
|
|
this.init("cesiumContainer");
|
|
this.init("cesiumContainer");
|