diff --git a/map4.js b/map4.js index 8712c08..a0e763c 100644 --- a/map4.js +++ b/map4.js @@ -185,14 +185,12 @@ selfMarker.addTo(map); } -// =================================== -// ピン生成(ステータス色ラベル付き) -// =================================== function createLabeledMarker(lat, lng, name, isSelf, status) { const pinUrl = isSelf ? "https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-green.png" : "https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-gold.png"; + // ステータス色(丸バッジに使う) const statusColor = { "移動中": "#4caf50", "遅れます": "#ff9800", @@ -201,17 +199,28 @@ }[status || "移動中"]; const html = ` -