-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
111 lines (96 loc) · 5.04 KB
/
index.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Rubik" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,600,700" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet'>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-hoalWLoI8r4UszCkZ5kL8vayOGVae1oxXe/2A4AO6J9+580uKHDO3JdHb7NzwwzK5xr/Fs0W40kiNHxM9vyTtQ==" crossorigin="">
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha512-BB3hKbKWOc9Ez/TAwyWxNXeoV9c1v6FIeYiBieIWkpLjauysF18NzgR1MBNBXf8/KABdlkX68nAhlwcDFLGPCQ==" crossorigin=""></script>
<link rel="stylesheet" href="./resources/css/reset.css">
<link rel="stylesheet" href="./resources/css/style.css">
<title>The Happenings Map</title>
</head>
<body>
<!-- Header -->
<header>
<div class="content">
<a href="https://harrymnel.github.io/" class="desktop logo">Harry Nel</a>
<nav class="desktop">
<ul>
<li><a href="#">About me</a></li>
<li><a href="#">Interests</a></li>
<li><a href="https://harrymnel.github.io/map/"><ion-icon name="map-outline"></ion-icon></a></li>
<li><a href="#" class="button">The Royal Trip</a></li>
</ul>
</nav>
<nav class="mobile">
<ul>
<li><a href="#"><img src="./resources/images/ic-logo.svg"></a></li>
<li><a href="#"><img src="./resources/images/ic-product-detail.svg"></a></li>
<li><a href="#"><img src="./resources/images/ic-about-us.svg"></a></li>
<li><a href="#" class="button">The Royal Trip</a></li>
</ul>
</nav>
</div>
</header>
<div id="map"></div>
<script>
var map = L.map('map').setView([-26.155438, 23.466797],5);
var tiles = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19,
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}).addTo(map);
var orangeIcon = L.icon({
iconUrl: './resources/images/leaf-orange.png',
shadowUrl: './resources/images/leaf-shadow.png',
iconSize: [38, 95], // size of the icon
shadowSize: [50, 64], // size of the shadow
iconAnchor: [22, 94], // point of the icon which will correspond to marker's location
shadowAnchor: [4, 62], // the same for the shadow
popupAnchor: [-3, -76] // point from which the popup should open relative to the iconAnchor
});
var redIcon = L.icon({
iconUrl: './resources/images/leaf-red.png',
shadowUrl: './resources/images/leaf-shadow.png',
iconSize: [38, 95], // size of the icon
shadowSize: [50, 64], // size of the shadow
iconAnchor: [22, 94], // point of the icon which will correspond to marker's location
shadowAnchor: [4, 62], // the same for the shadow
popupAnchor: [-3, -76] // point from which the popup should open relative to the iconAnchor
});
var greenIcon = L.icon({
iconUrl: './resources/images/leaf-green.png',
shadowUrl: './resources/images/leaf-shadow.png',
iconSize: [38, 95], // size of the icon
shadowSize: [50, 64], // size of the shadow
iconAnchor: [22, 94], // point of the icon which will correspond to marker's location
shadowAnchor: [4, 62], // the same for the shadow
popupAnchor: [-3, -76] // point from which the popup should open relative to the iconAnchor
});
L.marker([-22.25067,26.72552], {icon: orangeIcon}).addTo(map).bindPopup("Mokongwa Campsite (Khama Rhino Sanctuary)");;
L.marker([-20.45577,24.51673], {icon: orangeIcon}).addTo(map).bindPopup("Khumaga Campsite (Makgadikgadi Pans National Park)");;
L.marker([-22.28245,19.99103], {icon: redIcon}).addTo(map).bindPopup("East Gate Rest Camp");
L.marker([-26.37838,18.48477], {icon: redIcon}).addTo(map).bindPopup("Mesosaurus Fossil Camp");
L.marker([-24.060140,27.5848], {icon: greenIcon}).addTo(map).bindPopup("Matamba Bush Campsite");
L.marker([-32.24589,20.09822], {icon: greenIcon}).addTo(map).bindPopup("Perdekloof Campsite (Tankwa Karoo National Park)");
</script>
<!-- Footer -->
<footer>
<div class="social">
<a href="#"><ion-icon name="logo-instagram"></ion-icon></a>
<a href="#"><ion-icon name="logo-facebook"></ion-icon></a>
<a href="#"><ion-icon name="paw-outline"></ion-icon></a>
</div>
<ul class="list-inline">
<li class="list-inline-item"><a href="#">About Me</a></li>
<li class="list-inline-item"><a href="#">Interests</a></li>
<li class="list-inline-item"><a href="#">The Royal Trip</a></li>
<li class="list-inline-item"><a href="#">Matt Nel Photography</a></li>
<li class="list-inline-item"><a href="#">Privacy Policy</a></li>
</ul>
<p class="copyright">Harry Nel © 2022</p>
</footer>
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
</body>
</html>