From 422b7f3e0993f4324f39b0ed6479e476f0768840 Mon Sep 17 00:00:00 2001 From: Charles Hacskaylo Date: Thu, 2 Feb 2023 17:18:41 -0800 Subject: [PATCH] Compass rose rotation fixes (#6260) --- .../components/Compass/CompassRose.vue | 85 +++++++++---------- 1 file changed, 41 insertions(+), 44 deletions(-) diff --git a/src/plugins/imagery/components/Compass/CompassRose.vue b/src/plugins/imagery/components/Compass/CompassRose.vue index 958bd3779b..2b4a17f480 100644 --- a/src/plugins/imagery/components/Compass/CompassRose.vue +++ b/src/plugins/imagery/components/Compass/CompassRose.vue @@ -107,48 +107,53 @@ height="100" /> - - - - - - - - - + + + - - + + + + + + + - + @@ -305,7 +310,7 @@ export default { return { transform: `translate(${translateX}%, ${translateY}%) rotate(${rotation}deg) scale(${scale})` }; }, camGimbalAngleStyle() { - const rotation = rotate(this.north, this.heading); + const rotation = rotate(this.heading); return { transform: `rotate(${ rotation }deg)` @@ -332,14 +337,6 @@ export default { hasHeading() { return this.heading !== undefined; }, - headingStyle() { - /* Replaced with computed camGimbalStyle, but left here just in case. */ - const rotation = rotate(this.north, this.heading); - - return { - transform: `rotate(${ rotation }deg)` - }; - }, hasSunHeading() { return this.sunHeading !== undefined; },