feat: Implement PolyWeather frontend application with Leaflet map, city markers, and detail panel.

This commit is contained in:
2569718930@qq.com
2026-03-05 21:26:40 +08:00
parent 9979a35fd7
commit 03baa947e5
+5 -1
View File
@@ -327,7 +327,11 @@ function renderNearbyStations(data) {
// Update Heatmap
if (heatLayer) {
const heatData = nearby.map((st) => [st.lat, st.lon, st.temp || 10]);
const heatData = data.mgm_nearby.map((st) => [
st.lat,
st.lon,
st.temp || 10,
]);
// Add current city center to heat data
if (data.lat && data.lon && data.current?.temp != null) {
heatData.push([data.lat, data.lon, data.current.temp]);