-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
208 lines (182 loc) · 6.45 KB
/
index.html
File metadata and controls
208 lines (182 loc) · 6.45 KB
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>eBird Participation in 2013</title>
<link rel='shortcut icon' type='image/x-icon' href='./favicon.ico'/>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.2/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.2/mapbox.css' rel='stylesheet' />
<script src='//api.tiles.mapbox.com/mapbox.js/plugins/leaflet-hash/v0.2.1/leaflet-hash.js'></script>
<script src='./stories.geojson'></script>
<style>
/*Main Stuff*/
body {
margin:0;
padding:0;
font-family: 'Helvetica Neue', Helvetica, sans-serif;
}
#map {
position:absolute;
top:0;
bottom:0;
width:100%;
background: #000;
}
/*Move Leaflet Zoom Control to Custom Position*/
.leaflet-top .leaflet-control {
top: 95px;
left: 295px;
}
/*Popup*/
h3.story {
font-size: 125%;
color:#2b90bf;
}
p.story {
font-size: 90%;
color:#303030;
line-height: 1.25em;
}
.header {
position: absolute;
top:10px;
left:10px;
background: rgba(40, 40, 40, 0.8);
padding-top: 10px;
padding-left:20px;
padding-right:20px;
border-radius:5px;
box-shadow: 0px 0px 5px #848484;
z-index: 5;
}
h1.title {
color:#09ea32;
font-size: 175%;
line-height: 0px;
}
p.title {
text-align: left;
font-size: 100%;
color:#e8e8e8;
}
a.title {
color:#09ea32;
text-decoration: none;
}
/*Map Information*/
.infobox {
position: absolute;
top: 105px;
left: 10px;
width: 250px;
background: rgba(40, 40, 40, 0.8);
padding-left: 20px;
padding-right: 15px;
padding-top: 5px;
padding-bottom: 5px;
border-radius:5px;
box-shadow: 0px 0px 5px #848484;
z-index: 5;
}
h3.info {
line-height: 0.25em;
color: #49cbff;
}
p.info {
font-size: 75%;
color:#e8e8e8;
}
a.info {
text-decoration: none;
color: #49cbff;
}
/*Source Information*/
.sources {
position: absolute;
bottom:0px;
left:10px;
padding:0px;
font-size: 75%;
color: rgba(255,255,255,0.5);
}
a.source {
color:inherit;
text-decoration: none;
}
/*Stories Button*/
#map-ui {
position: absolute;
top: 10px;
right: 10px;
list-style: none;
margin: 0;
padding: 0;
color: #ffffff;
z-index: 100;
}
#map-ui a {
font: normal 16px/25px 'Helvetica Neue', Helvetica, sans-serif;
text-align: center;
background: rgba(57, 160, 229, 0.8);
display: block;
margin: 0;
padding: 0;
border: 1px solid #848484;
border-bottom-width: 0;
min-width: 140px;
padding: 10px;
text-decoration: none;
color: #FFF;
}
#map-ui a:hover {
background: rgb(57, 160, 229);
box-shadow: 0px 0px 5px #848484;
}
#map-ui li:first-child a {
-webkit-border-radius: 3px 3px 3px 3px;
border-radius: 3px 3px 3px 3px;
}
#map-ui a.active {
background: rgb(57, 160, 229);
color: #FFF;
}
</style>
</head>
<body>
<ul id='map-ui'></ul>
<div id='map' class='dark'></div>
<!-- Header -->
<div class="header">
<h1 class="title"><a href="http://ebird.org/content/ebird/about/" class="title">eBird</a> Participation in 2013</h1>
<p class="title">
Citizen Science Aides Avian Research</p>
</div>
<div class="infobox">
<h3 class="info">
About the Map
</h3>
<p class="info">
<strong style="color:#49cbff;">What is eBird?</strong> In 2002, The Cornell Lab or Ornithology and National Audubon Society launched the eBird project – a real-time, online checklist to collect bird observations voluntarily submitted by the public. In its first decade, eBird has revolutionized the way that the ornithological community reports and accesses information about birds.</br><em><a href="http://ebird.org/content/ebird/about/" class="info">Learn more...</a></em></p>
<p class="info">
<strong style="color:#49cbff;">What are the green dots?</strong> This map reveals each one of the 2.5 million bird lists submitted by bird-watchers across the world in 2013. Each green dot represents <strong>one list</strong> of bird sigtings submitted by a bird-watcher for a particular location and date. As the dots become denser, the color becomes brighter, so areas with the most lists submitted appear the brightest.</p>
</div>
<div class="sources">
<p>Map designed by <a href="http://mtaylorlong.com" class="source">M. Taylor Long</a>.<br>
List data downloaded with permission from <a href="http://ebird.org/ebird/data/download" class="source">eBird</a> and mapped with <a href="http://postgis.net/" class="source">PostGIS</a>.</br>
Tiles designed with <a href="https://www.mapbox.com/tilemill/" class="source">TileMill</a> and hosted by <a href="https://www.mapbox.com" class="source">MapBox</a> with street data from <a href="http://www.openstreetmap.org" class="source">Open Street Map</a>.</p>
</div>
<script>
// Initialize main map
var map = L.mapbox.map('map', 'mtaylorlong.i3jo92aa', {
shareControl: true,
minZoom: 2,
maxZoom: 8,
})
.setView([38.72, -100.00], 4)
.addControl(L.mapbox.geocoderControl('mtaylorlong.i3jo92aa'));
// Adds hash URL functionality
var hash = L.hash(map);
</script>
</body>
</html>