forked from r-hayes/teamchidonuts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
117 lines (105 loc) · 4.86 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
112
113
114
115
116
117
<html lang="en"><script id="tinyhippos-injected">if (window.top.ripple) { window.top.ripple("bootstrap").inject(window, document); }</script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scan=1">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<!--jquery js-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<!-- leaflet files -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>
<style>
body {
padding: 0;
margin: 0;
}
html, body, {
height: 100%;
width: 100%;
}
#map {
position: relative;
top: 50px;
height: 100%;
height: -webkit-calc(100% - 50px);
height: -moz-calc(100% - 50px);
height: calc(100% - 50px);
}
</style>
<title>CHI - Team Donuts Map</title>
</head>
<body>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="http://r-hays.github.io/teamchidonuts/"><strong>CHI - Team Donuts Map</strong></a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="http://r-hayes.github.io/teamchidonuts">Map</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">About <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="http://chi.anthropology.msu.edu/fellowships/">About the Group</a></li>
<li><a href="http://chi.anthropology.msu.edu/kb/weekly-topics-readings/">About this Project</a></li>
<li><a href="http://chi.anthropology.msu.edu/blog/">Member Posts</a></li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<div id="map"></div>
<script>
var map = L.map('map').setView([41.8731903, -96.8420169], 5);
L.tileLayer('https://api.mapbox.com/styles/v1/pinchme123/ck9drsnx31e6i1irrq4mjb6u2/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoicGluY2htZTEyMyIsImEiOiJ6NGZtTlM4In0.OCmTeaW54vMm7nqoaXsnjQ', {
attribution: 'Map data © <a href="http://mapbox.com">MapBox</a> | Navigation bar © <a href="http://getbootstrap.com/2.3.2/">Bootstrap</a>',
maxZoom: 18,
minZoom: 4,
tileSize: 512,
zoomOffset: -1
}).addTo(map);
var brianIcon = L.icon({
iconUrl: 'Brian.png',
shadowUrl: 'pin_shadow.png',
iconAnchor:[12, 41],
popupAnchor:[1, -34],
shadowSize:[41, 41]
})
var beccaIcon = L.icon({
iconUrl: 'Rebecca.png',
shadowUrl: 'pin_shadow.png',
iconAnchor:[12, 41],
popupAnchor:[1, -34],
shadowSize:[41, 41]
})
var jenniferIcon = L.icon({
iconUrl: 'Jennifer.png',
shadowUrl: 'pin_shadow.png',
iconAnchor:[12, 41],
popupAnchor:[1, -34],
shadowSize:[41, 41]
});
L.marker([41.921886, -83.422787], {icon:jenniferIcon}).addTo(map)
.bindPopup("<h4>Monroe, MI</h4> Jennifer's hometown is on the River Raisin. It's a small suburban town south of Detroit and north of Toledo, OH <br><br> <a href='http://en.wikipedia.org/wiki/Monroe,_Michigan'>Learn More</a>")
.closePopup();
L.marker([46.893892, -96.780419], {icon:beccaIcon}).addTo(map)
.bindPopup("<h4>Fargo, ND</h4> Becca's hometown sits on the banks of the <a href= 'http://en.wikipedia.org/wiki/Red_River_of_the_North'>Red River</a>, across from its sister city, <a href='http://en.wikipedia.org/wiki/Moorhead,_Minnesota'>Moorhead, MN</a>. Fargo is the largest city in North Dakota.<br><br> <a href='http://en.wikipedia.org/wiki/Fargo,_North_Dakota'>Learn More</a>")
.closePopup();
L.marker([46.257038, -119.201977], {icon: brianIcon}).addTo(map)
.bindPopup("<h4>Pasco, WA</h4> Brian's hometown is in eastern Washington on the breathtaking Columbia River, near the <a href='http://www.fws.gov/refuge/Hanford_Reach/'>Hanford Reach</a>. It is one of the three main cities that make up the Tri-Cities.<br><br><a href='http://en.wikipedia.org/wiki/Pasco,_Washington'>Learn More</a>")
.closePopup();
</script>
</body>
</html>