-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
113 lines (102 loc) · 4.49 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hello World</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/4.3.1/css/bootstrap.min.css">
<!--leaflet css-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.4.0/leaflet.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<!--add favicon for the web page-->
<link rel="shortcut icon" href="../../img/favicon.ico" type="image/x-icon">
<!--Font-->
<link href="https://fonts.googleapis.com/css?family=Cairo" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./css/style.css">
<!--add required libraries-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.4.0/leaflet.js"></script>
<!--jquery and Popper-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<!--boostrap-->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<!--leaflet.ajax for asynchronously adding geojson data-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-ajax/2.1.0/leaflet.ajax.min.js"></script>
<!--story map plugin-->
<script src="./js/main.js"></script>
</head>
<body>
<div id="storymap" class="container-fluid">
<div class="row">
<div class="col-sm-6 col-md-6 storymap-map">
</div>
<div class="col-sm-6 col-md-6 storymap-story">
<section data-scene="scene1">
<h2>FS and DNR Washington Field Oberservations</h2>
<p>... Text ... </p>
<img element style="width:-moz-available;"src="/media/flipflop/New Volume1/DNR_trip/photos/IMG_2328.JPG">
</section>
<section data-scene="scene2">
<h2>scene 2</h2>
</section>
<section data-scene="scene3">
<h2>scene 3</h2>
</section>
<section data-scene="scene4">
<h2>scene 4</h2>
</section>
<section data-scene="scene5">
<h2>scene 5</h2>
</section>
<section data-scene="scene6">
<h2>scene 6</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('./data.json', {
color: 'orange',
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: 47.4, lng: -121.5, zoom: 7, layers: [layers.layer2], name: "scene 1"},
scene2: {lat: 47.4, lng: -121.5, zoom: 7, layers: [layers.layer2], name: "scene 1"},
scene3: {lat: 47.4, lng: -121.5, zoom: 7, layers: [layers.layer2], name: "scene 1"},
scene4: {lat: 46.01158, lng: -123.2949388, zoom: 10, layers: [layers.layer2], name: "scene 2"},
scene5: {lat: 43.5701158, lng: -123.2949388, zoom: 12, layers: [layers.layer1, layers.layer2], name: "scene 3"}
};
$('#storymap').storymap({
scenes: scenes,
baselayer: layers.layer3,
legend: true,
loader: true,
flyto: true,
credits: "Build with <i class='material-icons' style='color: red; font-size: 10px;'>favorite</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>