fix: 默认显示雷达组合反射率

This commit is contained in:
yarnom 2025-10-14 18:41:04 +08:00
parent 35ba93a435
commit 582270ce95

View File

@ -16,9 +16,13 @@ const WeatherMap = {
this.initializeMap(tiandituKey); this.initializeMap(tiandituKey);
this.setupEventListeners(); this.setupEventListeners();
this.setupTileControls(); this.setupTileControls();
// 默认不显示(需用户选择),但准备好默认索引 // 默认叠加组合反射率radar并准备默认索引
this.tileZ = 7; this.tileY = 40; this.tileX = 102; this.tileZ = 7; this.tileY = 40; this.tileX = 102;
this.tileProduct = 'none'; this.tileProduct = 'radar';
const prodSel = document.getElementById('tileProduct');
if (prodSel) prodSel.value = 'radar';
// 触发首次加载
try { this.reloadTileTimesAndShow(); } catch(e) { console.warn('init tiles load failed', e); }
}, },
// 初始化图层 // 初始化图层