Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NewTruckTerminalSyetem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SQL_Mou
NewTruckTerminalSyetem
Commits
2ce569c7
Commit
2ce569c7
authored
Nov 28, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加视角跟随方法
parent
04164bcd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Map.vue
src/components/mars3d/Map.vue
+1
-1
index.vue
src/views/MLargeScreen/index.vue
+3
-0
No files found.
src/components/mars3d/Map.vue
View file @
2ce569c7
...
@@ -377,7 +377,7 @@ export default {
...
@@ -377,7 +377,7 @@ export default {
},
},
//视角跟随车辆
//视角跟随车辆
changeView1
(
lat
,
lng
){
changeView1
(
lat
,
lng
){
map
.
setCameraView
({
lat
:
lat
,
lng
:
lng
,
alt
:
100
,
heading
:
360
,
pitch
:
-
90
})
map
.
setCameraView
({
lat
:
lat
,
lng
:
lng
})
},
},
// 在图层绑定Popup弹窗
// 在图层绑定Popup弹窗
bindLayerPopup
(
graphicLayer
,
number
)
{
bindLayerPopup
(
graphicLayer
,
number
)
{
...
...
src/views/MLargeScreen/index.vue
View file @
2ce569c7
...
@@ -341,6 +341,9 @@ export default {
...
@@ -341,6 +341,9 @@ export default {
let
zuizhong1
=
{};
let
zuizhong1
=
{};
zuizhong1
.
name
=
that
.
equipmentName
;
zuizhong1
.
name
=
that
.
equipmentName
;
zuizhong1
.
jsonObject
=
JSON
.
stringify
(
LoaObj1
);
zuizhong1
.
jsonObject
=
JSON
.
stringify
(
LoaObj1
);
//地图视角跟随
//that.$refs.mars3dViewerMapMethod.changeView1(position.coords.latitude,position.coords.longitude);
//上传坐标
httpPostForJson
(
gpsPhoneGpsQuery
,
zuizhong1
).
then
((
res1
)
=>
{})
httpPostForJson
(
gpsPhoneGpsQuery
,
zuizhong1
).
then
((
res1
)
=>
{})
httpPostForJson
(
carRealTimeLocationQuery2
,
JSON
.
stringify
(
LoaObj1
)).
then
((
res2
)
=>
{})
httpPostForJson
(
carRealTimeLocationQuery2
,
JSON
.
stringify
(
LoaObj1
)).
then
((
res2
)
=>
{})
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment