diff --git a/stamp-rally.js b/stamp-rally.js index 140a9f5..fbcc317 100644 --- a/stamp-rally.js +++ b/stamp-rally.js @@ -68,6 +68,14 @@ const userLat = position.coords.latitude; const userLng = position.coords.longitude; + // 現在地マーカーを追加 + L.marker([userLat, userLng], { + icon: L.icon({ + iconUrl: 'current-location-icon.png', // 現在地アイコン(適宜画像を用意) + iconSize: [24, 24] + }) + }).addTo(map).bindPopup("📍 現在地").openPopup(); + const stamps = getSavedStamps(); let newStampEarned = false;