diff --git a/map/renshu/index.html b/map/renshu/index.html new file mode 100644 index 0000000..a07bcdc --- /dev/null +++ b/map/renshu/index.html @@ -0,0 +1,21 @@ + + + +練習地図 + + + + + + + +

練習地図

+
+
+ +
ta01002@e.koeki-u.ac.jp
+ + + diff --git a/map/renshu/mymap.js b/map/renshu/mymap.js new file mode 100644 index 0000000..5a1a031 --- /dev/null +++ b/map/renshu/mymap.js @@ -0,0 +1,18 @@ +document.addEventListener("DOMContentLoaded", () => { + var mymap = L.map("mymap").setView([38.89, 139.82], 14); + L.tileLayer('//cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png', { + attribution: + '国土地理院' + }).addTo(mymap); + L.control.scale().addTo(mymap); + //ここから好きな店へのルートを足す ラーメンたろう! + var ramenTaro = [ + [38.894440,139.819973], + [38.896644,139.819919], + [38.903913,139.816604], + [38.904276,139.814882], + [38.904985,139.814919] + ]; + var taroProp = {color: "purple", opacity: 0.6, weight: 8}; + L.polyline(ramenTaro, taroProp).addTo(mymap); +}, false);