-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
295 lines (221 loc) · 11.6 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
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
<!doctype html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<title>Multiple scenarios viz prototype</title>
<link rel="stylesheet" type="text/css" href="css/d3.parcoords.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script>
//Prevent Safari users
var is_safari = navigator.vendor === 'Apple Computer, Inc.';
if (is_safari){alert("Safari is not a supported browser for this visualization tool. Please use Chrome or Firefox. Have a nice day!")};
</script>
<!--Crossfilter-->
<script src='https://cdnjs.cloudflare.com/ajax/libs/crossfilter/1.3.12/crossfilter.min.js'></script>
<!--jQuery-->
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<!--Fancy buttons-->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Toggle -->
<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet">
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
<!-- Dropdown -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-hover-dropdown/2.2.1/bootstrap-hover-dropdown.min.js"></script>
<!-- Sliders-->
<script src='https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/9.5.4/bootstrap-slider.min.js'></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/9.5.4/css/bootstrap-slider.min.css" rel="stylesheet">
<!-- D3 -->
<script src="js/lib/d3.js"></script> <!-- When done, replace by: <script src="//d3js.org/d3.v3.min.js"></script> -->
<script src="js/main.js"></script>
<!-- Crossfiltering -->
<script src="js/crossfiltering.js"></script>
<!-- Parcoords plot -->
<script src="js/lib/d3.svg.multibrush.js"></script>
<script src="js/lib/d3.parcoords.js"></script>
<script src="js/lib/d3.queue.js"></script>
<script src="js/parallel_coord_brush.js"></script>
<!-- Sliders -->
<script src="js/sliders.js"></script>
<!-- Map -->
<script src="js/lib/geotiff.js"></script>
<!-- script src="js/plotty.js/dist/plotly.min.js"></script-->
<script src ='js/map.js'></script>
<script src ='js/hover_map.js'></script>
<!--Scatterplot-->
<script src ='js/scatterplot.js'></script>
<!--Fancy alerts-->
<script src="js/lib/sweetalert2.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/sweetalert2.min.css">
<script src ='js/BtnHelp.js'></script>
<!--Loading indicator-->
<script src ='js/loading.js'></script>
<!--Data table-->
<script src="js/lib/divgrid.js"></script>
<script src ='js/table.js'></script>
<!-- Raster computation -->
<script src ='js/rasterComputation.js'></script>
<!-- Pie plot -->
<script src="js/pieCharts.js"></script>
</head>
<!--
Pour les sliders:
<link href="css/style_assets.css" rel="stylesheet">
<link href="css/style_c_assets.css" rel="stylesheet">
-->
<!--may need these
<script src="examples/lib/d3.min.js"></script>
<script src="examples/lib/sylvester.js"></script>
<script src="examples/lib/slickgrid/jquery-1.7.min.js"></script>
<script src="examples/lib/underscore.js"></script>
<script src="examples/lib/underscore.math.js"></script>
-->
<body onload="main()">
<h1> Multi-objective optimization for the Maragua watershed <button class="btn btn-default btn-sm" id="btnHelp_gnrl" style="margin-bottom:7px;">?</button> </h1>
<!-- Back button to intro page -->
<button type="button" onclick="location.href='intro.html'" class="btn btn-default btn-sm" style="position:absolute; left:15px; top:25px;">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> Intro & all watersheds
</button>
<!-- Bug dropdown button -->
<div class="btn-group" style="position:absolute; right:15px; top:25px;">
<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" >
<span class="glyphicon glyphicon-bell"></span></button>
<ul class="dropdown-menu dropdown-menu-right">
<li><a href="https://github.com/charlottegiseleweil/webviz_natcap/issues/new" target="_blank">Report bug</a></li>
<li><a href="https://charlottegiseleweil.github.io/webviz_natcap/">Reset page</a></li>
<li><a href="http://www.charlotteweil.fr/masterthesis.html" target="_blank">About</a></li>
<li><a href="mailto:[email protected]">Contact</a></li>
</ul>
</div>
<div id="parcoords_n_map_block">
<div id="parcoords_sliders_block">
<!--Paarcoords-->
<h4 style="margin-left: 15px"> Objective scores <button class="btn btn-default btn-xs" id="btnHelp_parcoords">?</button> </h4>
<div id="parcoords_canvas" class="parcoords" style="width:850px;height:200px;">
</div>
<!--Sliders-->
<div class="sliders" id=sliders_canvas >
<div id="sliders_ow_canvas">
<h5> Objective weights <button class="btn btn-default btn-xs" id="btnHelp_sliders_ow">?</button> </h5>
<div class="slider_ow">
AWY <b>0</b>
<input id="obj1_slider" type="text"/> <b>100%</b>
</div>
<div class="slider_ow">
SDE <b>0</b>
<input id="obj2_slider" type="text"/> <b>100%</b>
</div>
<div class="slider_ow">
SDL <b>0</b>
<input id="obj3_slider" type="text"/> <b>100%</b>
</div>
</div>
<div id="sliders_pu_canvas">
<h5> Key input parameters <button class="btn btn-default btn-xs" id="btnHelp_sliders_pu">?</button> </h5>
<div class="slider_pu">
Z <b>0.5</b>
<input id="pu1_slider" type="text"/> <b>5</b>
</div>
<div class="slider_pu">
K <b>1</b>
<input id="pu2_slider" type="text"/> <b>10</b>
</div>
<div class="slider_pu">
Spatial <b>A</b>
<input id="pu3_slider" type="text"/> <b>B</b>
</div>
<div class="slider_pu" >
Budget <b>0.5B</b>
<input id="pu4_slider" type="text" data-slider-tooltip="hide"/> <b>2B</b>
</div>
</div>
<!-- Buttons -->
<div id="buttonzContainer">
<button id="btnReset" class="btn btn-default btn-sm" style="margin-right: 39px;">Reset all selections</button>
<button type="button" class="btn btn-default btn-sm" id="ViewData" style="margin-right: 39px;">View dataset</button>
<button onclick="location.href='data/MaraguaMarch1.csv'" class="btn btn-default btn-sm" type="button" id="DwnldData" >
Download data file <span class="glyphicon glyphicon-save" aria-hidden="true"></span></button>
</div>
</div>
</div>
<div id="table_canvas" class='invisiblee'>
</div>
<div id="map_block"">
<div id="map_controls">
<!--Toggle button-->
   
<div style="margin-left: 10px;">
<b>Portfolios</b>
<input id="map_toggle" data-on=" " data-off=" " class="inline" type="checkbox" data-toggle="toggle" data-onstyle="success" data-offstyle="info" data-size="mini" style="vertical-align: middle;"> <!-- other colors: "primary", "success" , "danger" -->
<b>Objective score maps</b>
</div>
   
<!--Radiobuttons-->
<div id="Radiobuttons" class="inline">
<div style="display:block;"> <input type="radio" name="radiobutton" value="1" id="radio1"/> <label for="radio1" id="label_radio1" class="label_radio">Modal portfolio</label> </div>
<div style="display:block;"> <input type="radio" name="radiobutton" value="2" id="radio2"/> <label for="radio2" id="label_radio2" class="label_radio">Percent agreement map</label> </div>
<div style="display:block;"> <input type="radio" name="radiobutton" value="3" id="radio3"/> <label for="radio3" id="label_radio3" class="label_radio">Footprint of portfolios</label> </div>
<!--Land cover map checkbox-->
<input id="landcover_checkbox" type="checkbox"><label class="label_radio" id="overlay_txt"> Overlay on land cover</label>
<!--Obje score absolute/marginal toggle-->
<div id="ObjToggle" >
Absolute values maps
<input id="obj_toggle" data-on=" " data-off=" " class="inline" type="checkbox" data-toggle="toggle" data-onstyle="success" data-offstyle="success" data-size="mini" style="vertical-align: middle;">
Marginal values maps
</div>
</div>
       
<h3 id="map_title" style="display:inline;"> Current landcover </h3>
   
<p id="map_stat" style="display:inline;"> Maragua watershed </p>
<div id='pie-chart'></div>
</div>
<div id="map_n_legend">
<!--Legend-->
<svg id="legend" class="legend" width="140"></svg>
<!--Map-->
<canvas id="map_canvas" width="1030" height="335"></canvas>
<canvas id="map_canvas2" class='map_superposee' width="1030" height="335"></canvas>
<button class="btn btn-default btn-sm" style="position: absolute; top: 0; right: 0;" id="Calc_map">Calculate map for selection</button>
<button class="btn btn-default btn-sm" style="position: absolute; top: 35px; right: 0;" id="btnZoom">Enable zooming</button>
<button class="btn btn-default btn-xs" style="position: absolute; top: 70px; right: 0;" id="btnHelp_map">?</button>
<!--<canvas id="map_canvas2" width="1936" height="599"></canvas>-->
</div>
</div>
</div>
<div id="scatterplots" width="300" style="vertical-align: top;">
<h4> Trade-offs curves <button class="btn btn-default btn-xs" id="btnHelp_scatterplots">?</button>
<!--Dropdown-->
<div class="btn-group">
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
+<!--<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>-->
</button>
<ul class="dropdown-menu dropdown-menu-right">
<li>Frontiers lines <input id="scatterplot_frontiers_checkbox" type="checkbox" checked="true"</li>
<li>Ticks <input id="scatterplot_ticks_checkbox" type="checkbox"></li>
<li>Legend <input id="scatterplot_legend_checkbox" type="checkbox" checked="true"> </li>
</ul>
</div>
</h4>
<div id="scatterplot_legend" style="position:absolute; right:0px; width:60px; height:60px">
</div>
<div id="scatterplot1" style="display:block;" >
</div>
<div id="scatterplot2" style="display:block;" >
</div>
<div id="scatterplot3" style="display:block;" >
</div>
</div>
<footer>
<div class="container ">
<p class="footer_text">
Visualization dashboard developed by <a href="https://www.linkedin.com/in/charlotteweil" target="_blank">Charlotte Gisèle Weil</a>
</a> with the great help of <a href="https://ch.linkedin.com/in/chabbey-françois-755ba754/en" target="_blank">François Chabbey</a>
</a> in support of the project led by <a href="https://bpbryant.wordpress.com/" target="_blank">Dr Benjamin Bryant</a> at the <a href="http://www.naturalcapitalproject.org" target="_blank">Natural Capital Project</a>
<!-- img <a href="http://www.naturalcapitalproject.org"><img HR WIDTH="3%" src="data/images/natcap-logo.png" alt="The Natural Capital Project Img"></a> -->
</p>
</div>
</footer>
</body>
</html>