Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FleetTruckView
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
FleetTruck
FleetTruckView
Commits
1dca4515
Commit
1dca4515
authored
Aug 17, 2023
by
高晓帆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
56b93898
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
28 deletions
+2
-28
MapLeaflet_20230817150557.vue
.history/src/views/map/MapLeaflet_20230817150557.vue
+0
-0
ht-Truckmonitorview-1.1.3.zip
ht-Truckmonitorview-1.1.3.zip
+0
-0
MapLeaflet.vue
src/views/map/MapLeaflet.vue
+2
-28
No files found.
.history/src/views/map/MapLeaflet_20230817150557.vue
0 → 100644
View file @
1dca4515
This diff is collapsed.
Click to expand it.
ht-Truckmonitorview-1.1.3.zip
0 → 100644
View file @
1dca4515
File added
src/views/map/MapLeaflet.vue
View file @
1dca4515
...
@@ -133,6 +133,8 @@ onMounted(() => {
...
@@ -133,6 +133,8 @@ onMounted(() => {
navigate
.
value
=
true
navigate
.
value
=
true
dealVehicleRotate
()
dealVehicleRotate
()
currentRotation
.
value
=
BASE_RAD
currentRotation
.
value
=
BASE_RAD
clearTimeout
(
resetTime
)
resetTime
=
null
;
}
}
},
reNavigateTime
)
},
reNavigateTime
)
}
}
...
@@ -162,35 +164,7 @@ function changeCompass() {
...
@@ -162,35 +164,7 @@ function changeCompass() {
}
}
}
}
function
changeMouseDown
()
{
ismousedown
=
true
}
function
changeMouseMove
()
{
if
(
ismousedown
)
{
ismousemove
=
true
if
(
resetTime
)
{
window
.
clearTimeout
(
resetTime
)
resetTime
=
null
}
}
}
function
changeMouseUp
()
{
if
(
!
currentPosition
)
return
if
(
ismousedown
&&
ismousemove
)
{
navigate
.
value
=
false
resetTime
=
window
.
setTimeout
(()
=>
{
if
(
!
navigate
.
value
)
{
navigate
.
value
=
true
dealVehicleRotate
()
currentRotation
.
value
=
BASE_RAD
}
},
reNavigateTime
)
ismousedown
=
false
ismousemove
=
false
}
}
function
dealVehicleRotate
(
rotate
)
{
function
dealVehicleRotate
(
rotate
)
{
let
keys
=
Object
.
keys
(
vehicles
)
let
keys
=
Object
.
keys
(
vehicles
)
...
...
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