diff --git a/src/BlazeStarNova.vue b/src/BlazeStarNova.vue index 57a3aa8..cd79969 100644 --- a/src/BlazeStarNova.vue +++ b/src/BlazeStarNova.vue @@ -261,7 +261,7 @@ import {throttle} from './debounce'; import { equatorialToHorizontal } from "./utils"; import { EquatorialRad, LocationRad } from "./types"; -import { makeAltAzGridText, setupConstellationFigures, renderOneFrame } from "./wwt-hacks"; +import { resetAltAzGridText, makeAltAzGridText, setupConstellationFigures, renderOneFrame } from "./wwt-hacks"; import { usePlaybackControl } from "./wwt_playback_control"; import { useTimezone } from "./timezones"; @@ -480,6 +480,9 @@ const ready = computed(() => layersLoaded.value && positionSet.value); /* `isLoading` is a bit redundant here, but it could potentially have independent logic */ const isLoading = computed(() => !ready.value); +// It doesn't really matter which one we note here +const inNorthernHemisphere = computed(() => selectedLocation.value.latitudeDeg > 0); + function getCrbAlt(when: Date | null = null) { const location = getWWTLocation(); const crbAltAz = equatorialToHorizontal( @@ -650,6 +653,8 @@ watch(selectedLocation, (location: LocationDeg) => { WWTControl.singleton.renderOneFrame(); }); +watch(inNorthernHemisphere, (_inNorth: boolean) => resetAltAzGridText()); +