From 1189fec014528c97d4ff9fe7d39194e1694e33c0 Mon Sep 17 00:00:00 2001 From: rayd1o Date: Thu, 19 Mar 2026 12:48:25 +0800 Subject: [PATCH] feat(earth): init view to China coordinates --- frontend/public/earth/js/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/public/earth/js/main.js b/frontend/public/earth/js/main.js index 06f49862..5cc88f0a 100644 --- a/frontend/public/earth/js/main.js +++ b/frontend/public/earth/js/main.js @@ -15,7 +15,7 @@ import { import { createEarth, createClouds, createTerrain, createStars, createGridLines, toggleTerrain, getEarth } from './earth.js'; import { loadGeoJSONFromPath, loadLandingPoints, handleCableClick, clearCableSelection, getCableLines, getCablesById, lockedCable as cableLocked } from './cables.js'; import { createSatellites, loadSatellites, updateSatellitePositions, toggleSatellites, toggleTrails, getShowSatellites, selectSatellite, getSatelliteData, getSatellitePoints } from './satellites.js'; -import { setupControls, getAutoRotate, getShowTerrain, zoomLevel, setAutoRotate, toggleAutoRotate } from './controls.js'; +import { setupControls, getAutoRotate, getShowTerrain, zoomLevel, setAutoRotate, toggleAutoRotate, resetView } from './controls.js'; import { initInfoCard, showInfoCard, hideInfoCard, getCurrentType, setInfoCardNoBorder } from './info-card.js'; export let scene, camera, renderer; @@ -80,6 +80,7 @@ export function init() { createSatellites(scene, earthObj); setupControls(camera, renderer, scene, earthObj); + resetView(camera); setupEventListeners(camera, renderer); loadData();