-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
85 lines (73 loc) · 3.92 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""/>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""></script>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="styleshhet" href="style.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">
<!-- Local Files -->
<script src = "map.js"></script>
<script src = "data1.js"></script>
<script src = "netherlands.js"></script>
<script src = "orgs.js"></script>
</head>
<body>
<nav class = "navbar navbar-expand-sm navbar-dark bg-dark">
<a href="#" class="navbar-brand">GIS-E</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class= "collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<!-- <li class="nav-item">
<a href="#" class = "nav-link" onclick="go_to_city(1);">Where do we work?</a>
</li> -->
<li class="nav-item">
<a href="#" class = "nav-link" onclick="go_to_city(2);">Where are our volunteers?</a>
</li>
<!-- <li class="nav-item">
<a href="#" class = "nav-link" onclick="go_to_city(3); console.log('been clicked');">Shapefiles too!</a>
</li> -->
<!-- <li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown link
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li> -->
</ul>
</div>
</nav>
<div id="mapid" style="width: 100%; height: 920px"></div>
<!-- <div id="mapid" style="width: 100%;"></div> -->
<script>
// Global variables
var mymap = L.map('mapid').setView([0,0], 3);
var volunteer_icon = L.icon({
iconUrl: 'icon.png',
iconSize: [38, 55], // size of the icon
iconAnchor: [22, 22], // point of the icon which will correspond to marker's location
popupAnchor: [-3, -76] // point from which the popup should open relative to the iconAnchor
});
function loadMap() {
loadLeafletMap();
//window.addEventListener('resize', setMapClickEvent);
// whereWeWork();
go_to_city(2); // load the volunteer data on load
}
document.addEventListener('DOMContentLoaded', function() {
// functions that happen on load
loadMap();
}, false);
</script>
</body>
</html>