diff --git a/public/jupitersystem.php b/public/jupitersystem.php index bbd6a31..a533d23 100644 --- a/public/jupitersystem.php +++ b/public/jupitersystem.php @@ -940,7 +940,7 @@ function shiftGrsRotation(angleDeg) { grsRefAngle = currentAngle + (angleDeg * Math.PI / 180); } -function applyEarthView(targetRadius = 200) { +function applyEarthView(targetRadius = 280) { const geoVec = AstronomyEngine.GeoVector(AstronomyEngine.Body.Jupiter, simDate, true); const toEarth = { x: -geoVec.x, y: -geoVec.y, z: -geoVec.z }; const ecl = AstronomyEngine.RotateVector(rotationEqjToEcl, toEarth); @@ -1146,7 +1146,13 @@ function attachUiHandlers() { updateCamera(); }); - btnEarth.addEventListener('click', () => applyEarthView()); + btnEarth.addEventListener('click', () => { + // Im Erde-Blick sollen alle vier Galileischen Bahnen vollständig sichtbar sein. + showOrbits = true; + btnOrbits.classList.add('is-active'); + moonOrbitLines.forEach((line) => { line.visible = true; }); + applyEarthView(280); + }); btnOrbits.addEventListener('click', () => { showOrbits = !showOrbits;