Reverse rotation
This commit is contained in:
parent
2c80a6f8aa
commit
8a91b61b48
@ -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();
|
||||
|
@ -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)`
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user