From 0d0b9ae018d7d06f5b6a0c8e72242334bdf8578a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Sat, 24 Sep 2022 23:48:55 +0200 Subject: [PATCH] Use latitude only for Globe rotation starting angle --- src/modules/globe2/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/globe2/index.ts b/src/modules/globe2/index.ts index 78afb44..123022f 100644 --- a/src/modules/globe2/index.ts +++ b/src/modules/globe2/index.ts @@ -17,8 +17,8 @@ export class Globe { this.height = this.el.offsetHeight this.markers = options.markers || [] this.globeRotation = { - lat: degToRad(-this.options.rotationStart.lat) || 0, - lng: degToRad(-this.options.rotationStart.lng) || 0, + lat: degToRad(-this.options.rotationStart) || 0, + // lng: degToRad(-this.options.rotationStart.lng) || 0, } // Calculate the current sun position from a given location