Skip to content

Commit

Permalink
🚧 #3 add speed test on the map
Browse files Browse the repository at this point in the history
  • Loading branch information
JAGFx committed Dec 19, 2020
1 parent 72f4f0c commit 70d1dbf
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/dashboards/maps/assets/scss/maps.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,28 @@
height: 2rem;
}

#speed-limit {
position: absolute;
left: .3rem;
width: auto;
top: .3rem;

span {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
background: $cWhite;
border: .3rem solid $cRed;
border-radius: 100%;
width: 3rem;
height: 3rem;
color: $cBlack;
font-weight: bold;
font-size: 1.2rem;
}
}

.ol-mouse-position {
position: absolute;
width: 5rem;
Expand Down
3 changes: 3 additions & 0 deletions src/dashboards/maps/components/DashMaps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
<i class="fas fa-bullseye"></i>
</button>
</div>
<div id="speed-limit">
<span>{{ unit_speed( telemetry.navigation.speedLimit, true, false ) }}</span>
</div>
<div id="eta">
ETA:
{{ $etaDueDate() | $dateTimeLocalized( DATE_FORMAT_LONG, TIME_FORMAT_SHORT ) }},
Expand Down

0 comments on commit 70d1dbf

Please sign in to comment.