diff --git a/map4.js b/map4.js index ba2dd33..8da6a35 100644 --- a/map4.js +++ b/map4.js @@ -141,14 +141,15 @@ // ピン生成(自分:緑 / 他人:金) // =================================== function createLabeledMarker(lat, lng, name, isSelf) { + 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 html = ` -