This commit is contained in:
Zakary Timson 2019-08-23 17:58:13 -04:00
parent 37a6ae92ae
commit 1f2f8923a9
3 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,8 @@
<div>
<div class="row">
<mat-form-field appearance="fill" class="col-12 col-md-6">
<mat-label>Label</mat-label>
<input matInput [(ngModel)]="marker.label">
</mat-form-field>
</div>
</div>

View File

@ -0,0 +1,12 @@
import {Component, Inject} from "@angular/core";
import {MatBottomSheetRef} from "@angular/material";
import {MAT_BOTTOM_SHEET_DATA} from "@angular/material/bottom-sheet";
@Component({
selector: 'calibrate',
templateUrl: 'marker.component.html'
})
export class MarkerComponent {
constructor(private bottomSheetRef: MatBottomSheetRef, @Inject(MAT_BOTTOM_SHEET_DATA) public marker) { }
}

View File

@ -23,8 +23,6 @@ export class PhysicsService {
window.addEventListener('deviceorientation', orientation => this.orientation.next(orientation));
window.addEventListener('devicemotion', motion => this.motion.next(motion));
navigator.geolocation.watchPosition(position => this.position.next(position));
navigator.geolocation.getCurrentPosition(e => console.log(e));
this.position.subscribe(e => console.log(e));
// Combine data into one nice package
combineLatest(this.position, this.orientation, this.calibrate).subscribe(data => {