|
@@ -58,7 +58,9 @@
|
|
// pixelOffset: new Cesium.Cartesian2(0, billboard.pixelOffset),
|
|
// pixelOffset: new Cesium.Cartesian2(0, billboard.pixelOffset),
|
|
disableDepthTestDistance: Number.POSITIVE_INFINITY,
|
|
disableDepthTestDistance: Number.POSITIVE_INFINITY,
|
|
scale: 1,
|
|
scale: 1,
|
|
- scaleByDistance: new Cesium.NearFarScalar(1.5e2, 1, 2400, 0) //按距离缩放,即距离大于180米时,图标不显示 Cesium.NearFarScalar(near, nearValue, far, farValue)相机范围的下界。相机范围下界的值。相机范围的上限。该值位于摄像机范围的上界。
|
|
|
|
|
|
+ scaleByDistance: new Cesium.NearFarScalar(1.5e2, 1,
|
|
|
|
+ 2400, 0
|
|
|
|
+ ) //按距离缩放,即距离大于180米时,图标不显示 Cesium.NearFarScalar(near, nearValue, far, farValue)相机范围的下界。相机范围下界的值。相机范围的上限。该值位于摄像机范围的上界。
|
|
}
|
|
}
|
|
});
|
|
});
|
|
jt3d._viewer.entities.add(that.entity, {
|
|
jt3d._viewer.entities.add(that.entity, {
|
|
@@ -119,13 +121,20 @@
|
|
* 添加镇街边界线——精灵线
|
|
* 添加镇街边界线——精灵线
|
|
*/
|
|
*/
|
|
addBoundaryLine(jt3d) {
|
|
addBoundaryLine(jt3d) {
|
|
- jt3d.PolylineObject.drawPolylineByGeoJson(map_xzqh_zj, {
|
|
|
|
- width: 5,
|
|
|
|
- color: '#04FFFF',
|
|
|
|
- isImageAlpha: true, //用图片自带颜色
|
|
|
|
- duration: 3000,
|
|
|
|
- imgUrl: "jt3dSDK/imgs/polylinematerial/spriteline1.png"
|
|
|
|
- });
|
|
|
|
|
|
+ // jt3d.PolylineObject.drawPolylineByGeoJson(map_xzqh_zj, {
|
|
|
|
+ // width: 5,
|
|
|
|
+ // color: '#04FFFF',
|
|
|
|
+ // isImageAlpha: true, //用图片自带颜色
|
|
|
|
+ // duration: 3000,
|
|
|
|
+ // imgUrl: "jt3dSDK/imgs/polylinematerial/spriteline1.png"
|
|
|
|
+ // });
|
|
|
|
+ // jt3d.WallObject.drawWallByGeoJson('datafiles/features.json',{
|
|
|
|
+ // maximumHeights: 100,
|
|
|
|
+ // minimumHeights: 0,
|
|
|
|
+ // color:[0,238,255]
|
|
|
|
+ // }).then(res => {
|
|
|
|
+
|
|
|
|
+ // });
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -198,7 +207,11 @@
|
|
isRetainDrawPoint: true, //绘制完成是否保留绘制点
|
|
isRetainDrawPoint: true, //绘制完成是否保留绘制点
|
|
iconType: 'blue',
|
|
iconType: 'blue',
|
|
});
|
|
});
|
|
- jt3d.DrawMilitaryPlot = new this.jt3dSDK.DrawMilitaryPlot(jt3d._viewer);
|
|
|
|
|
|
+ // jt3d.DrawMilitaryPlot = new this.jt3dSDK.DrawMilitaryPlot({
|
|
|
|
+ // viewer: jt3d._viewer,
|
|
|
|
+ // Cesium: Cesium,
|
|
|
|
+ // });
|
|
|
|
+ // jt3d.DrawMilitaryPlot = new this.jt3dSDK.DrawMilitaryPlot(jt3d._viewer);
|
|
|
|
|
|
jt3d.LocateUtil = new this.jt3dSDK.LocateUtil(jt3d._viewer);
|
|
jt3d.LocateUtil = new this.jt3dSDK.LocateUtil(jt3d._viewer);
|
|
|
|
|
|
@@ -260,22 +273,22 @@
|
|
fullMap(jt3d) {
|
|
fullMap(jt3d) {
|
|
// 初始化项目区域范围视角
|
|
// 初始化项目区域范围视角
|
|
let optionsS = {
|
|
let optionsS = {
|
|
- west: 121.563298,
|
|
|
|
- south: 37.284514,
|
|
|
|
- east: 121.565298,
|
|
|
|
- north: 37.286514,
|
|
|
|
|
|
+ west: 121.612585,
|
|
|
|
+ south: 40.884155,
|
|
|
|
+ east: 122.306116,
|
|
|
|
+ north: 41.211786,
|
|
isRemove: false, //定位完成后是否删除
|
|
isRemove: false, //定位完成后是否删除
|
|
duration: 3, //飞行时间
|
|
duration: 3, //飞行时间
|
|
heading: 0,
|
|
heading: 0,
|
|
pitch: -90,
|
|
pitch: -90,
|
|
range: 115000
|
|
range: 115000
|
|
};
|
|
};
|
|
-
|
|
|
|
|
|
+
|
|
let optionsE = {
|
|
let optionsE = {
|
|
- west: 121.563298,
|
|
|
|
- south: 37.284514,
|
|
|
|
- east: 121.565298,
|
|
|
|
- north: 37.286514,
|
|
|
|
|
|
+ west: 121.612585,
|
|
|
|
+ south: 40.884155,
|
|
|
|
+ east: 122.306116,
|
|
|
|
+ north: 41.211786,
|
|
isRemove: true, //定位完成后是否删除
|
|
isRemove: true, //定位完成后是否删除
|
|
duration: 3, //飞行时间
|
|
duration: 3, //飞行时间
|
|
heading: 0,
|
|
heading: 0,
|