-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadventure.html
76 lines (59 loc) · 2.58 KB
/
adventure.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<html>
<head>
<title>Teris's Map of Adventures!</title>
<link rel="stylesheet" href="assets/leaflet/leaflet.css"/>
<script src="assets/leaflet/leaflet.js"></script>
<style>
#map{ height: 100% }
</style>
</head>
<body>
<div id="map"></div>
<script>
var mymap = L.map('map', {
center: [53.474977, -1.805159],
zoom: 6
});
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}', {
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://mapbox.com">Mapbox</a>',
maxZoom: 18,
id: 'mapbox.streets',
accessToken: 'pk.eyJ1IjoibHRhdGFraXMiLCJhIjoiY2s3bnV5a3h5MDJ0czNncDlqbTFsaDJoOSJ9.jEUS7PHiihqDh0-75gIP-w'
}).addTo(mymap);
// Stonehenge
const stone = L.marker([51.1739726374, -1.82237671048 ]).addTo(mymap);
stone.bindPopup("Stonehenge")
// oxford
const oxford = L.marker([51.75222, -1.25596 ], { title: "Home" }).addTo(mymap);
oxford.bindPopup("Oxford")
// snowdon
const snowdown = L.marker([53.0685, -4.0763 ], { title: "snowdown" }).addTo(mymap);
snowdown.bindPopup("Snowdon")
// gospel pass
const gospelPass = L.marker([52.010036, -3.115638]).addTo(mymap);
gospelPass.bindPopup("Gospel Pass")
// somewhere in the yorkshare dales
const yorkhire = L.marker([54.195081, -2.094376]).addTo(mymap);
yorkhire.bindPopup("Yorkshire Dales")
// scotland where finn recommended
const scotland = L.marker([56.871453, -5.674568]).addTo(mymap);
scotland.bindPopup("Scotland")
// island of mull
const mull = L.marker([56.484262, -5.989230]).addTo(mymap);
mull.bindPopup("Island of Mull")
// ben nevis
const benNevis = L.marker([56.803789, -5.028140]).addTo(mymap);
benNevis.bindPopup("Ben Nevis")
// cotworld
L.marker([51.888966, -1.809867]).addTo(mymap);
// island of wight
const wight = L.marker([50.761441, -1.296214]).addTo(mymap);
wight.bindPopup("Island of Wight")
//Cardinham Woods
const woods = L.marker([50.470100, -4.676070]).addTo(mymap);
woods.bindPopup("Cardinham Woods");
// coast to coast starting point
L.marker([54.548558, -3.591116]).addTo(mymap);
</script>
</body>
</html>