Use latitude only for Globe rotation starting angle

This commit is contained in:
2022-09-24 23:48:55 +02:00
parent 8247d481a1
commit 0d0b9ae018

View File

@@ -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