diff --git a/leaflet/index.js b/leaflet/index.js index 6df5613..eb830c8 100644 --- a/leaflet/index.js +++ b/leaflet/index.js @@ -36,33 +36,19 @@ let b = L.latLng(38.89348 , 139.81946); console.log(a.distanceTo(b)); -// let test = L.latlng[38.759832, 139.735152]; -// let x = 10; -// function onmapClick(e) { -// const test = L.marker(e.latlng).addTo(map) -// // .bindPopup("You are within " + radius + " meters from this point").openPopup() -// let radius = e.accuracy/2; -// console.log(radius); -// } -// map.on('click',onmapClick); // setViewまたはcenterで最初に表示される中心位置を設定できる // zoomで最初に表示される近さを設定できる // .bindPopupメソッドでHTMLコンテンツを含むポップアップを表示する // .popup()で表示されるコンテンツを設定できる // .latlngでその場所の経度、を緯度調べられる - // distanceTo( otherLatLng)で距離が図れる -// center:[38.89232, 139.82221], -// zoom:17 -// }); // let map = L.map('map').setView([38.89232, 139.82221], 15); +// L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { + // attribution: '© OpenStreetMap contributors' + // }).addTo(map); // L.marker([38.89232, 139.82221]).addTo(map).bindPopup('飯盛山グラウンド') -// L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { -// attribution: '© OpenStreetMap contributors' -// }).addTo(map); - // L.marker([38.89348, 139.81946]).addTo(map).bindPopup('東北公益文化大学') // L.marker([38.8936, 139.82063]).addTo(map).bindPopup('テニス場')