var mymap = L.map("mymap").setView([38.9185, 139.8366], 13); 

L.tileLayer('//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
  attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(mymap);

// 公園マーカー追加
var parks = [
  {
    name: "日和山公園",
    coords: [38.9188, 139.8333],
    description: "高台にある景観の良い公園"
  },
  {
    name: "光ヶ丘公園",
    coords: [38.9212, 139.8310],
    description: "広場や遊具が充実"
  },
  {
    name: "最上川ふるさと総合公園",
    coords: [38.9015, 139.8617],
    description: "スポーツ施設や遊具が豊富"
  }
];

parks.forEach(function(park) {
  L.marker(park.coords)
    .addTo(mymap)
    .bindPopup(`<strong>${park.name}</strong><br>${park.description}`);
});
