-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
166 lines (126 loc) · 3.9 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
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
<head>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
<link href='https://fonts.googleapis.com/css?family=Oxygen:400,300,700' rel='stylesheet' type='text/css'>
<script src='http://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-omnivore/v0.2.0/leaflet-omnivore.min.js'></script>
<style>
.info {
width: 450px;
height: 500px;
/* background-color: #686D73; */
/* background-color: #E1E1E1;*/
color: #000;
/* left: 0; */
/* margin-left: 10px;*/
/* padding-left: 10px;*/
font-family: sans-serif;
position: relative;
opacity: 0.9;
background: rgba(255,255,255,0.9);
box-shadow: 0 0 15px rgba(0,0,0,0.3);
border-radius: 1px;
}
h4 {
font-weight: 400;
font-family: sans-serif;
font-size: 16pt;
}
footer {
background-color: #363B47;
position: fixed;
opacity .9;
left: 0;
/* margin-left: -10px; */
bottom: 0;
height: 32%;
width: 100%;
overflow:hidden;
}
h5 {
color: white;
font-weight: 400;
opacity .9;
font-family: sans-serif;
font-size: 16pt;
}
li {
height: 98%;
width: 33%;
float: left;
position: relative;
display: block;
}
p {
font-size: 10px;
color: #686D73;
font-family: sans-serif;
}
body { margin:0; padding:0; }
.description {
width: 300px;
}
.pictures {
width: 300px;
text-align: center;
}
.description2 {
width: 300px;
}
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
<body>
<div id="map" style="height: 100%;"></div>
<div id="info_box"></div>
<script type="text/javascript">
// The first parameter are the coordinates of the center of the map
// The second parameter is the zoom level
var map = L.map('map').setView([40.712, -74.006], 3);
var dino_icon = L.icon({
iconUrl: 'images/footprint.png'
});
layer = L.tileLayer('http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', {
attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'
});
// Now add the layer onto the map
map.addLayer(layer);
marker_layer = omnivore.csv('sample_expeditions.csv').on('ready', function(layer) {
this.eachLayer(function(marker) {
console.log(marker);
var expedition_title = marker.feature.properties.name;
var location_name = marker.feature.properties.location;
var people_involved = marker.feature.properties.people;
var description = marker.feature.properties.details;
var year = marker.feature.properties.start;
// marker.setIcon(dino_icon);
marker.bindPopup('<strong>Expedition: </strong>'+ expedition_title + '<br> <strong>Historical Note: </strong>'+ description + '<br> <strong> Personnel: </strong>' + people_involved);
});
})
.addTo(map);
</script>
<footer>
<ul>
<li>
<div class="description">
<h5> Yushe Basin | 1938</h5>
<p>
The primary purpose of this survey expedition is to locate the 1933 fossil with a view to extract the remains for further study. The secondary focus will be to explore the immediate area for more fossil deposits that may have been uncovered in the 1934/35 floods. This expedition also forms part of the Project 138 objectives as outlined above.
</p>
</div>
</li>
<li>
<div class="pictures">
<img src="images/picture2.png" alt="Explorers" align="middle" style="height:75%;">
</div>
</li>
<li>
<div class="description2">
<h5> Pit Stop #3</h5>
<p>
The more we learn about these processes the better we will be able to predict future climate change and its consequences. The work north of Lake Eyre continues, but surveying in remote regions around the Kallakoopah and in the centre of the Simpson Desert is extremely difficult with 4WD vehicles.
</p>
</div>
</li>
</ul>
</footer>
</body>