diff --git a/map4.js b/map4.js index 1218905..2e63a21 100644 --- a/map4.js +++ b/map4.js @@ -636,16 +636,12 @@ // 🔵 EVピン(CSV と名前一致) if (elevatorInfo.get(name)) { - const ev = L.marker([st.lat, st.lon], { icon: elevatorIcon }) - .addTo(map) - .bindPopup(`${name}:エレベーターあり`); - stationMarkers.push(ev); - } - }); + // 最寄り駅表示(EV情報つき) +const evText = elevatorInfo.get(nearest.name) ? "(EVあり)" : "(EVなし)"; - box.textContent = - `最寄り駅:${nearest.name}(約 ${(nearestDist / 1000).toFixed(2)} km)`; -} +box.textContent = + `最寄り駅:${nearest.name}${evText}(約 ${(nearestDist / 1000).toFixed(2)} km)`; + // =================================== // メイン処理 // ===================================