Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
刘远
/
3d_dc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
cc8568a9
authored
2020-09-09 09:46:53 +0800
by
刘远
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
jikai commit
1 parent
1c92db51
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
37 deletions
src/components/bottomNav.vue
src/components/taskList.vue
src/components/threeMap.vue
src/components/visualField.vue
src/components/yyAnslysis.vue
src/components/bottomNav.vue
View file @
cc8568a
...
...
@@ -51,7 +51,7 @@
data
:{
username
:
'案件查处'
,
password
:
'123'
},
success
:(
res
)
=>
{
// window.open(`http://10.6.144.88:10001/frontweb/index.jsp?type=${label}`)
window
.
open
(
`http://192.168.
5.143
:80/frontweb/index.jsp?type=
${
label
}
`
)
window
.
open
(
`http://192.168.
3.194
:80/frontweb/index.jsp?type=
${
label
}
`
)
},
fail
:
()
=>
{
...
...
src/components/taskList.vue
0 → 100644
View file @
cc8568a
This diff is collapsed.
Click to expand it.
src/components/threeMap.vue
View file @
cc8568a
...
...
@@ -31,27 +31,40 @@
}));
let
scene
=
viewer
.
scene
scene
.
shadowMap
.
darkness
=
1
;
//设置第二重烘焙纹理的效果(明暗程度)
scene
.
skyAtmosphere
.
brightnessShift
=
0.4
;
scene
.
skyAtmosphere
.
brightnessShift
=
0.4
;
scene
.
debugShowFramesPerSecond
=
true
;
scene
.
hdrEnabled
=
false
;
scene
.
sun
.
show
=
true
;
scene
.
lightSource
.
ambientLightColor
=
new
Cesium
.
Color
(
0.65
,
0.65
,
0.65
,
1
);
this
.
$parent
.
draw
=
new
createDraw
(
viewer
);
this
.
$parent
.
viewer
=
viewer
;
// this.$parent.viewer = viewer;
objectManage
.
viewer
=
viewer
;
var
promise
=
[];
promise
[
0
]
=
scene
.
addS3MTilesLayerByScp
(
URL_CONFIG
.
SCP_CBD_BUILD
,
{
name
:
'build1'
});
promise
[
1
]
=
scene
.
addS3MTilesLayerByScp
(
URL_CONFIG
.
SCP_CBD_BUILD
,
{
name
:
'build2'
});
promise
[
2
]
=
scene
.
addS3MTilesLayerByScp
(
URL_CONFIG
.
SCP_CBD_GROUND1
,
{
name
:
'ground'
});
promise
[
0
]
=
scene
.
addS3MTilesLayerByScp
(
URL_CONFIG
.
SCP_CBD_BUILD
,
{
name
:
'build1'
});
promise
[
1
]
=
scene
.
addS3MTilesLayerByScp
(
URL_CONFIG
.
SCP_CBD_BUILD
,
{
name
:
'build2'
});
promise
[
2
]
=
scene
.
addS3MTilesLayerByScp
(
URL_CONFIG
.
SCP_CBD_GROUND1
,
{
name
:
'ground'
});
promise
[
3
]
=
scene
.
addS3MTilesLayerByScp
(
URL_CONFIG
.
SCP_CBD_LAKE
,
{
name
:
'lake'
});
// promise[4] = scene.addS3MTilesLayerByScp(URL_CONFIG.SCP_CBD_ROAD, { name: 'road' });
// promise[5] = scene.addS3MTilesLayerByScp(URL_CONFIG.SCP_CBD_BRIDGE, {name: 'bridge'});
promise
[
4
]
=
scene
.
addS3MTilesLayerByScp
(
URL_CONFIG
.
SCP_CBD_TREE
,
{
name
:
'tree'
});
// promise[5] = scene.addS3MTilesLayerByScp(
// 'http://localhost:8090/iserver/services/3D-scene/rest/realspace/datas/dcdata@dataSource/config',
// { name : 'dcdata'}
// );
// promise[6] = scene.addS3MTilesLayerByScp(
// 'http://localhost:8090/iserver/services/3D-scene/rest/realspace/datas/dcdata1@dataSource/config',
// { name : 'dcdata1'}
// );
Cesium
.
when
.
all
(
promise
,
layers
=>
{
layers
[
0
].
shadowType
=
2
;
layers
[
1
].
shadowType
=
2
;
layers
[
2
].
shadowType
=
2
;
layers
[
0
].
selectEnabled
=
false
;
layers
[
1
].
selectEnabled
=
false
;
layers
[
2
].
selectEnabled
=
false
;
scene
.
camera
.
setView
({
destination
:
Cesium
.
Cartesian3
.
fromDegrees
(
116.44621857300415
,
39.899281526734555
,
216.7793905027196
),
orientation
:
{
...
...
src/components/visualField.vue
View file @
cc8568a
...
...
@@ -83,11 +83,11 @@
return
{
step
:
1
,
num
:
1
,
direction
:
1
,
// 方向
direction
:
1
80
,
// 方向
pitch
:
1
,
// 翻转
distance
:
1
,
// 距离
horizontalFov
:
1
,
// 水平视场角
verticalFov
:
1
,
// 垂直视场角
distance
:
320
,
// 距离
horizontalFov
:
1
20
,
// 水平视场角
verticalFov
:
90
,
// 垂直视场角
visibleAreaColor
:
'red'
,
// 可见区域颜色
hiddenAreaColor
:
'rgba(255, 69, 0, 0.68)'
,
// 不可见区域颜色
isXmbj
:
true
,
...
...
src/components/yyAnslysis.vue
View file @
cc8568a
...
...
@@ -32,28 +32,20 @@
</div>
<!--
<div
class=
"func-input"
>
<div
class=
"btn-wrapper2"
:class=
"[isCF?'add-bg2': '']"
@
click=
"handleIsXmbj('isCF')"
>
<span
class=
"center"
>
春分
</span>
</div>
<div
class=
"btn-wrapper2"
:class=
"[isXZ?'add-bg2': '']"
@
click=
"handleIsXmbj('isXZ')"
>
<span
class=
"center"
>
夏至
</span>
</div>
<div
class=
"btn-wrapper2"
:class=
"[isQF?'add-bg2': '']"
@
click=
"handleIsXmbj('isQF')"
>
<span
class=
"center"
>
秋分
</span>
</div>
<div
class=
"btn-wrapper2"
:class=
"[isLD?'add-bg2': '']"
@
click=
"handleIsXmbj('isLD')"
>
<span
class=
"center"
>
立冬
</span>
</div>
<div
class=
"btn-wrapper2"
:class=
"[isDZ?'add-bg2': '']"
@
click=
"handleIsXmbj('isDZ')"
>
<span
class=
"center"
>
冬至
</span>
</div>
</div>
-->
<div
class=
"func-input"
>
<span>
时间间隔
</span>
<el-input-number
v-model=
"timeS"
controls-position=
"right"
:min=
"0"
:max=
"1000"
style=
"margin:0 12px; width: 245px;"
></el-input-number>
<span>
分钟
</span>
</div>
-->
<div
class=
"func-input"
>
<span>
底部高程
</span>
<el-input
v-model=
"bottomHeight"
style=
"margin:0 12px; width: 245px;"
></el-input>
</div>
<div
class=
"func-input"
>
<span>
拉伸高度
</span>
<el-input
v-model=
"extrudeHeight"
style=
"margin:0 12px; width: 245px;"
></el-input>
</div>
<div
class=
""
style=
"padding: 18px 24px 0px 24px;"
>
...
...
@@ -82,15 +74,18 @@
<
script
>
let
maxW
=
24
*
60
*
60
*
1000
-
1
*
60
*
1000
import
shadow
from
"../assets/js/map/shadow"
;
import
objectManage
from
'../assets/js/map/maputils'
;
export
default
{
name
:
'yyAnslysis'
,
components
:
{},
data
()
{
return
{
anslysisTime
:
''
,
anslysisTime
:
new
Date
()
,
timeS
:
30
,
// 时间间隔
time
:
0
*
60
*
60
*
1000
,
// 滑块时间
time
:
new
Date
().
getHours
()
*
60
*
60
*
1000
,
// 滑块时间
max
:
(
24
*
60
*
60
*
1000
-
1
*
60
*
1000
),
bottomHeight
:
20
,
extrudeHeight
:
20
,
marks
:
{
0
:
'0:00'
,
[
maxW
]:
'23:59'
,
...
...
@@ -113,6 +108,12 @@
this
.
$emit
(
'closePop'
,
'yyAnslysis'
)
},
startAnalysis
()
{
Object
.
assign
(
this
.
shadow
,
{
anslysisTime
:
this
.
anslysisTime
,
bottomHeight
:
Number
(
this
.
bottomHeight
),
extrudeHeight
:
Number
(
this
.
extrudeHeight
)
});
this
.
shadow
.
remove
();
this
.
shadow
.
handlerPolygon
.
deactivate
();
this
.
shadow
.
handlerPolygon
.
activate
();
},
...
...
@@ -133,7 +134,8 @@
})
},
EtimeChange
()
{
this
.
anslysisTime
.
setHours
(
Math
.
round
(
this
.
time
/
1000
/
60
/
60
));
objectManage
.
viewer
.
clock
.
currentTime
=
Cesium
.
JulianDate
.
fromDate
(
this
.
anslysisTime
);
},
formatTooltip
(
val
)
{
let
nowTime
=
this
.
commons
.
dateZhuan
(
'yyyy-MM-dd 00:00:00'
,
new
Date
());
...
...
Please
register
or
sign in
to post a comment