feat: use precise airport coords and show temp unit on marker

This commit is contained in:
2569718930@qq.com
2026-03-03 21:44:02 +08:00
parent 0416f930e9
commit 38d2159934
2 changed files with 15 additions and 14 deletions
+2 -1
View File
@@ -43,8 +43,9 @@ function createMarkerIcon(city) {
const riskClass = `risk-${city.risk_level}`;
const label = city.display_name;
// Short name for marker
const unitSym = city.temp_unit === "fahrenheit" ? "°F" : "°C";
const shortName = label.length > 10 ? label.substring(0, 8) + "…" : label;
const tempText = city._temp !== undefined ? `${city._temp}` : "—";
const tempText = city._temp !== undefined ? `${city._temp}${unitSym}` : "—";
const html = `
<div class="city-marker" data-city="${city.name}">