Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Fix sun declination angle so it isn't backwards...

Russ Garrettbd58c0024a9c
diff --git a/web/src/style/style.ts b/web/src/style/style.ts
index 1e19c8c..3e13292 100644
--- a/web/src/style/style.ts
+++ b/web/src/style/style.ts
@@ -21,7 +21,7 @@ function sunDeclinationAngle(date: Date): number {
60 /
1000
- return -23.44 * Math.cos((360 / 365) * (dayOfYear + 10) * (Math.PI / 180))
+ return 23.44 * Math.cos((360 / 365) * (dayOfYear + 10) * (Math.PI / 180))
}
function sunPolarAngle(date: Date): number {