Reverse rotation

This commit is contained in:
Zakary Timson 2019-07-11 18:27:04 -04:00
parent 2c80a6f8aa
commit 8a91b61b48
2 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,9 @@ export class CalibrateComponent {
this.physicsService.calibrate.next(c);
}
constructor(private bottomSheetRef: MatBottomSheetRef, private physicsService: PhysicsService) { }
constructor(private bottomSheetRef: MatBottomSheetRef, private physicsService: PhysicsService) {
this._calibration = this.physicsService.calibrate.value;
}
close() {
this.bottomSheetRef.dismiss();

View File

@ -36,7 +36,7 @@ export class MapComponent {
if(this.position.heading != null) {
let marker: HTMLElement = document.querySelector('img[src*="arrow.png"]');
if(marker) marker.style.transform = `rotate(${this.position.heading}deg)`
if(marker) marker.style.transform = `rotate(-${this.position.heading}deg)`
}
}
});