-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
180 lines (151 loc) · 7.09 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!DOCTYPE html>
<html lang="en" xmlns="" xmlns="">
<head>
<title>Popular Cities in Oregon</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--add required stylesheets-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css">
<!--animation-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<link rel="stylesheet" type="text/css" href="assets/storymap.2.3.css">
<link href="https://fonts.googleapis.com/css?family=Cairo" rel="stylesheet">
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
<!--add required libraries-->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-ajax/2.1.0/leaflet.ajax.min.js"></script>
<script src="https://unpkg.com/shpjs@latest/dist/shp.js"></script>
<!--story map plugin-->
<script src="assets/storymap.2.3.js"></script>
</head>
<body>
<div id="storymap" class="container-fluid">
<div class="row">
<div class="col-sm-6 col-md-8 storymap-map"></div>
<div class="col-sm-6 col-md-4 storymap-story">
<section data-scene="scene1">
<h2 style="color: red;">Oregon</h2>
<hr/>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus
et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla
consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a,
venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi.
Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in,
viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies
nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus,
sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem.
Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci
eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget
bibendum sodales, augue velit cursus nunc,</p>
</section>
<section data-scene="scene3">
<h2>Baker City</h2>
<hr/>
<h4>9,770 | -0.6% | Baker County | Est. 1874</h4>
<p></p>
</section>
<section data-scene="scene2">
<h2>Portland</h2>
<hr/>
<h4>current pop | growth | Multnomah County | Est. 1854</h4>
<p></p>
</section>
<section data-scene="scene4">
<h2>Portland</h2>
<hr/>
<h4>current pop | growth | Multnomah County | Est. 1854</h4>
<p></p> </section>
<section data-scene="scene5">
<h2>scene 3</h2>
</section>
<section data-scene="scene6">
<h2>scene 3</h2>
</section>
<section data-scene="scene7">
<h2>scene 3</h2>
</section>
<section data-scene="scene8">
<h2>scene 3</h2>
</section>
<section data-scene="scene9">
<h2>scene 3</h2>
</section>
<section data-scene="scene10">
<h2>scene 3</h2>
</section>
<section data-scene="scene11">
<h2>scene 3</h2>
</section>
<section data-scene="scene12">
<h2>scene 3</h2>
</section>
<section data-scene="scene13">
<h2>scene 3</h2>
</section>
<section data-scene="scene14">
<h2>scene 3</h2>
</section>
<section data-scene="scene15">
<h2>scene 3</h2>
</section>
<section data-scene="scene16">
<h2>scene 3</h2>
</section>
<section data-scene="scene16">
<h2>scene 3</h2>
</section>
<section data-scene="scene18">
<h2>scene 3</h2>
</section>
<section data-scene="scene19">
<h2>scene 3</h2>
</section>
</div>
</div>
</div>
<script type="text/javascript">
var layers = {
layer1: {
layer: L.tileLayer('http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}'),
legend: '<i style="background: black; opacity: 0.5"></i><p><b>legend 1</b></p>'
},
layer2: {
layer: L.geoJson.ajax('http://mapious.ceoas.oregonstate.edu/geoserver/mapious/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=ore_counties&outputFormat=application%2Fjson', {
color: 'green',
weight: 5
}),
legend: '<i style="background: orange; opacity: 0.5"></i><p><b>legend 2</b></p>'
},
layer3: {
layer: L.tileLayer('http://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png')
}
};
var scenes = {
scene1: {lat: 44, lng: -123.5, zoom: 7, layers: ['layer2'], name: "scene 1"},
scene2: {lat: 44.7749, lng: -117.8344, zoom: 10, layers: ['layer2'], name: "scene 2"},
scene3: {lat: 44.5701158, lng: -123.2949388, zoom: 12, layers: ['layer1', 'layer2'], name: "scene 3"}
};
$('#storymap').storymap({
scenes: scenes,
layers: layers,
baselayer: layers.layer3,
legend: true,
loader: true,
flyto: false,
credits: "build with<i class='glyphicon glyphicon-heart' style='color: red'></i> from Bo Zhao",
scalebar: true,
scrolldown: true,
progressline: true,
navwidget: true,
createMap: function () {
var map = L.map($(".storymap-map")[0], {zoomControl: false}).setView([44, -120], 7);
basemap = this.baselayer.layer.addTo(map);
return map;
}
});
</script>
</body>
</html>