forked from geosolutions-it/VME-Viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
324 lines (279 loc) · 14 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
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="Map application to display areas of Vulnerable Marine Ecosystems." />
<meta name="author-corporate" content="FAO of the UN" />
<meta name="copyright" content="http://www.fao.org/corp/copyright/en/" />
<meta name="keywords" content="RFB, Regional Fishery Body, Map, FAO" />
<title>Vulnerable Marine Ecosystems Database</title>
<link rel="stylesheet" type="text/css" href="lib/OpenLayers/theme/default/style.css" />
<link rel="stylesheet" href="theme/css/style.css" type="text/css" />
<link rel="stylesheet" href="theme/css/html.css" type="text/css" />
<link rel="stylesheet" href="theme/css/vme.css" type="text/css" />
<link rel="stylesheet" href="theme/css/vmefonts.css" type="text/css" />
<script type="text/javascript" src="lib/extjs/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="lib/extjs/ext-all.js"></script>
<link rel="stylesheet" type="text/css" href="lib/extjs/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="lib/extjs/resources/css/xtheme-gray.css" />
<link rel="stylesheet" type="text/css" href="lib/GeoExt/resources/css/geoext-all.css" />
<!-- <link rel="stylesheet" type="text/css" href="lib/jQueryUI/development-bundle/themes/start/jquery-ui-1.8.2.custom.css" /> -->
<!-- <script type="text/javascript" src="lib/jQueryUI/js/jquery-1.4.2.min.js" ></script> -->
<!-- <script type="text/javascript" src="lib/jQueryUI/js/jquery-ui-1.8.2.custom.min.js"></script> -->
<script type="text/javascript" src="lib/OpenLayers/OpenLayers.js"></script>
<script type="text/javascript" src="lib/proj4js/lib/proj4js-compressed.js"></script>
<script type="text/javascript" src="lib/OpenLayers/openlayers-ext/LoadingPanel.js"></script>
<script type="text/javascript" src="lib/GeoExt/script/GeoExt.js"></script>
<script type="text/javascript" src="lib/OpenLayers/openlayers-ext/GlassyPanZoom.js" defer="defer"></script>
<script type="text/javascript" src="src/figis-data.js"></script>
<script type="text/javascript" src="src/georeferences.js"></script>
<script type="text/javascript" src="src/login.js"></script>
<script type="text/javascript" src="src/factsheet.js"></script>
<script type="text/javascript" src="src/FigisMap.js"></script>
<!-- proxy overriding configuration: allows to use a proxy for test purpose -->
<script type="text/javascript" src="src/proxy-ovr.js" defer="defer"></script>
<script type="text/javascript" src="src/vmeData.js" ></script>
<script type="text/javascript" src="src/popups.js"></script>
<script type="text/javascript" src="src/sidePanel.js" ></script>
<script type="text/javascript" src="src/vme.js"></script>
<script type="text/javascript" src="lib/OpenLayers/openlayers-ext/Watermark.js" defer="defer"></script>
<style type="text/css">
table.featureInfo, table.featureInfo td, table.featureInfo th {
border:1px solid #15428B;
margin:0;
padding:0;
font-size: 12px;
white-space: nowrap;
/*padding:.1em .1em; */
}
table.featureInfo th{
padding:.2em .2em;
/*text-transform:lowercase;*/
color:#fff;
font-weight:bold;
font-size: 12px;
background:#15428B;
}
table.featureInfo td{
background:#fff;
font-size: 12px;
white-space: nowrap;
}
table.featureInfo tr.odd td{
background:#CEDFF5;
font-size: 12px;
white-space: nowrap;
}
table.featureInfo caption{
text-align:left;
font-size:100%;
font-weight:bold;
text-transform:lowercase;
padding:.2em .2em;
}
</style>
<!-- header style -->
<style type="text/css">
#header {
width: 920px;
position: relative;
background-image: url(theme/img/patternbanner.jpg);
background-repeat: no-repeat;
background-position: left top;
height: 172px;
}
#header #logo {
width: 400px;
}
#header .info {
width: 360px;
position: absolute;
right: 20px;
top: 40px;
color: #fff;
font-family: Verdana, Helvetica, Arial, sans-serif;
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 16px;
text-align: left;
text-shadow: 1px 1px 2px #000;
}
img{
max-width: 100%
}
</style>
<!--[if lt IE 9]>
<link rel="stylesheet" href="theme/css/oldie.css" type="text/css" />
<![endif]-->
<script type="text/javascript">
//Workaround for IE7 IE8 http://trac.osgeo.org/openlayers/ticket/2304
document.namespaces;
</script>
</head>
<body>
<div id="page">
<div id="wrapper">
<!--
<div id="top">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left">
<a href="http://www.fao.org" target="_blank"><img border=0 style="vertical-align: middle;" src="theme/img/FIGIS_banner-logo.gif" alt="FOOD AND AGRICULTURE ORGANIZATION OF THE UNITED NATIONS" title="Food and Agriculture Organization of the United Nations"/></a>
</td>
<td align="right">
<a href="http://www.fao.org/fishery" target="_blank"><img border=0 style="vertical-align: middle;" src="theme/img/FIGIS_banner-text.gif" alt="FAO Fisheries and Aquaculture Department" title="FAO Fisheries and Aquaculture Department"/></a>
</td>
</tr>
<tr>
<td>
<h1 id="title">Vulnerable Marine Ecosystems Map Viewer</h1>
</td>
</tr>
</table>
</div> -->
<div>
<div class="ribbon" style="position:absolute;right:0px;top:0px;z-index:5000">
<img src="theme/img/beta-ribbon.png" alt="Beta"/>
</div>
</div>
<div id="header">
<div id="logo"><img src="theme/img/logo.fw.png" width="377" height="172" alt=""/></div>
<div id="subTitle" class="info">
The Vulnerable Marine Ecosystem Database (VME-DB)<br />
gathers information on VME areas stored in harmonized<br />
way and disseminated through maps and fact sheets.
</div>
</div>
<div style="display:none" id="topBar">
<label id="lblFilRFB" style="visibility:hidden">Zoom to:</label>
<select id="FilterRFB" onchange="setZoom()"></select>
<label style="visibility:hidden" id="lblRFB">Filter by:</label>
<select style="visibility:hidden" id="SelectRFB" onchange="setVME(null, null, null, 'e-link','rfbs-link', 'rfbs-html')"></select>
<!--a href="javascript:embedLink();" id="EmbedLink" title="Link or embed this RFB map"><span>Link</span></a-->
<input id="txtCql" type="hidden" />
<input id="command" type="hidden" />
<input id="opt" type="hidden" />
<!-- li>
<label id="lblCQL">Provide CQL Query</label>
<input id="txtCql" type="text" />
<input id="btnUpdate" type="button" value="UPDATE" onClick="addRFBCQL()"/>
</li>
<li>
<label id="lblCQL">Enter Command</label>
<input id="command" type="text" />
<input id="cmdbtn" type="button" value="UPDATE" onClick="Command()"/>
</li>
<li>
<label id="lblCQL">Optional Arguments</label>
<input id="opt" type="text" />
</li -->
</div>
<div style="position:relative" id="main">
<div id="map" class="map"></div>
<div id="bottomLeftPanel">
<div id="lblSRS" onclick="toggleProjectionPanel();">
Change projection
</div>
<div id="SelectSRS">
<div>
<p>
<input id="mercatorRadio" type="radio" onchange="setVME(null, null, this.value, 'embed-link','embed-url', 'embed-iframe')" name="srs" value='3349' checked="checked" />
<label>Mercator</label>
</p>
<p>
<input type="radio" onchange="setVME(null, null, this.value, 'embed-link','embed-url', 'embed-iframe')" name="srs" value='4326' />
<label>WGS84</label>
</p>
</div>
<div>
<p>
<input type="radio" onchange="setVME(null, null, this.value, 'embed-link','embed-url', 'embed-iframe')" name="srs" value='3031' />
<label>South Polar</label>
</p>
<!-- missing proj4js eck4.js file -->
<!-- <option value='54012'>EckertIV (54012)</option> -->
<p>
<input type="radio" onchange="setVME(null, null, this.value, 'embed-link','embed-url', 'embed-iframe')" name="srs" value='54009' />
<label>Mollweide</label>
</p>
</div>
</div>
</div>
<div id="bottomRightPanel">
<div id="yearLess" onClick="javascript:FigisMap.ol.decrementYear()" unselectable="on"></div>
<div id="yearCurrent">
2013
</div>
<div id="yearMore" onClick="javascript:FigisMap.ol.incrementYear()" unselectable="on"></div>
</div>
<div id="loginContainer" class="figisButton" onclick="FigisMap.logInOut()">Login</div>
<div id="lblVME" class="lblVME figisButtonToggle" style="" onclick="toggleStyle(this, true)">VME areas</div>
<div id="lblFootprints" class="lblFootprints figisButton" style="" onclick="toggleStyle(this, true)">Footprints</div>
<div id="lblReset" class="lblReset figisButton" style="" onclick="reset()">Reset</div>
<div id="sidebar">
<div id="leftTopPan">
<div id="searchtextwrapper"><input type="text" id="searchtext" name="searchtext" onkeydown="if (event.keyCode == 13) { Vme.search(false);sidePanel.layout.setActiveItem('searchPanel');sidePanel.expand();Vme.form.panels.SearchPanel.layout.setActiveItem('resultPanel');}"/><div onclick=" Vme.search(false);sidePanel.layout.setActiveItem('searchPanel');sidePanel.expand();Vme.form.panels.SearchPanel.layout.setActiveItem('resultPanel');" id="simpleSearchButton"></div></div>
<div id="leftTopLinks">
<a onclick="sidePanel.layout.setActiveItem('searchPanel');sidePanel.expand();Vme.form.panels.SearchPanel.layout.setActiveItem('searchForm');Vme.form.panels.SearchPanel.doLayout()">Advanced Search</a> |
<a onclick="sidePanel.layout.setActiveItem('legendPanel');sidePanel.expand();">Legend</a> <div class="xbutton-closepanels" onclick="sidePanel.collapse();" > </div> |
<a onclick="sidePanel.layout.setActiveItem('embed-link');sidePanel.expand();setVMEEmbedLink('embed-url', 'embed-iframe');">EmbedLink</a> <div class="xbutton-closepanels" onclick="sidePanel.collapse();" > </div>
</div>
</div>
<div id="sidebarP"></div></div>
<!--div id="e-link">
<div>
<label for="rfbs-link">Paste the link in email or chat</label>
<input id="rfbs-link" type="text" readonly="readonly" value="" onclick="this.focus();this.select();"/>
</div>
<div>
<label for="rfbs-html">Paste the HTML in a web site</label>
<input id="rfbs-html" type="text" readonly="readonly" value="" onclick="this.focus();this.select();"/>
</div>
</div-->
<!-- <div class="legend legendTitle" id="legendLegendTitle">Legend</div>
<div id="legend" class="legend"></div> -->
<!--div class="legend legendTitle" id="legendMembersTitle">List of Members</div>
<div id="MemberCountries" class="legend"></div-->
</div>
</div>
</div>
<div id ="disclaimer">
</div>
<div id="bottomBar1"><a href="http://www.geo-solutions.it" style="float:left;text-align:left;padding-left:2px;">Credits</a>
powered by
<a title="FIGIS web site" href="http://www.fao.org/fishery/figis/en">FIGIS</a>
<a title="FAO Copyright" target="_blank" href="http://www.fao.org/corp/copyright/en/">
© FAO,
<span id="copyYear">2011</span>
</a>
</div>
<script type="text/javascript">
// <![CDATA[
Ext.onReady(function(){
sidePanel.render(document.getElementById('sidebarP'));
setVMEPage('embed-link','embed-url', 'embed-iframe');
Ext.QuickTips.init();
//FigisMap.ol.setSelectedYear(new Date().getFullYear()); // moved in setVMEPage to manage embed link
if(Ext.isIE7 || Ext.isIE8 || Ext.isIE9)
Ext.get('yearCurrent').addClass('ie');
});
function updateCopyYear() {
var uy = new Date();
uy = parseInt(uy.getFullYear() ? uy.getFullYear() : uy.getYear());
var py = parseInt( document.getElementById('copyYear').innerHTML );
if ( isNaN(uy) || isNaN(py) ) return void(0);
if ( uy > py ) document.getElementById('copyYear').innerHTML = String( uy );
return void(0);
}
updateCopyYear();
document.getElementById('disclaimer').innerHTML = FigisMap.label('DISCLAIMER', '<p></p>');
document.getElementById('subTitle').innerHTML = FigisMap.label('SUB_TITLE');
// ]]>
</script>
<!--<input type="button" id="addlayer" value="Show RFB" onclick="addLayer()"/>
<input type="button" id="addlayer" value="Show zoom" onclick="SLD()"/>-->
</body>
</html>