New dashboard widgets

- Custom time range can now be picked
- Map now shows accuracy of latest beat
- Presets removed
This commit is contained in:
2020-10-25 00:10:25 +02:00
parent 8a4b0b1e13
commit fa60f58d3c
17 changed files with 360 additions and 74 deletions

View File

@@ -1,13 +1,19 @@
<mgl-map [style]="'mapbox://styles/mapbox/outdoors-v11'" [zoom]="[10]" [center]="[12.7, 50.8]">
<mgl-geojson-source id="locHistory" [data]="data"></mgl-geojson-source>
<mgl-map [style]="'mapbox://styles/mapbox/dark-v10'" [zoom]="[15]" [center]="[this.lastLocation[0], this.lastLocation[1]]" *ngIf="showMap">
<mgl-geojson-source id="locHistory" [data]="data"></mgl-geojson-source>
<mgl-geojson-source id="lastLoc" [data]="lastLocationData"></mgl-geojson-source>
<mgl-layer
id="locHisotryLines"
id="locHistory"
type="line"
source="locHistory"
[paint]="{
'line-color': '#ff0000',
'line-width': 3
}"
>
</mgl-layer>
></mgl-layer>
<mgl-layer
id="lastLoc"
type="circle"
source="lastLoc"
[paint]="lastLocationPaint"
></mgl-layer>
</mgl-map>