From 1f2f8923a9fcaf5513d8a12a447e26af568d67af Mon Sep 17 00:00:00 2001 From: ztimson Date: Fri, 23 Aug 2019 17:58:13 -0400 Subject: [PATCH] Fix --- src/app/components/marker/marker.component.html | 8 ++++++++ src/app/components/marker/marker.component.ts | 12 ++++++++++++ src/app/services/physics.service.ts | 2 -- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 src/app/components/marker/marker.component.html create mode 100644 src/app/components/marker/marker.component.ts diff --git a/src/app/components/marker/marker.component.html b/src/app/components/marker/marker.component.html new file mode 100644 index 0000000..34f4858 --- /dev/null +++ b/src/app/components/marker/marker.component.html @@ -0,0 +1,8 @@ +
+
+ + Label + + +
+
diff --git a/src/app/components/marker/marker.component.ts b/src/app/components/marker/marker.component.ts new file mode 100644 index 0000000..8d42f6e --- /dev/null +++ b/src/app/components/marker/marker.component.ts @@ -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) { } +} diff --git a/src/app/services/physics.service.ts b/src/app/services/physics.service.ts index d2f526a..3238f59 100644 --- a/src/app/services/physics.service.ts +++ b/src/app/services/physics.service.ts @@ -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 => {