Newer
Older
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta charset="UTF-8">
<meta name="application" content="VS Client release-1.0.0-rc.0">
<link rel="icon" href="//eox.at/wp-content/uploads/2015/06/cropped-eox_eye-192x192.png" sizes="192x192" />
<link rel="apple-touch-icon-precomposed" href="//eox.at/wp-content/uploads/2015/06/cropped-eox_eye-180x180.png" />
</head>
<body>
<header id="header" style="width: 100%; height:70px;">
<h3 style="width:100%;text-align:center;
color: #006699;">PRISM View Server (PVS) Client powered by
<a href="//eox.at"><img src="//eox.at/wp-content/uploads/2017/09/EOX_Logo.svg" alt="EOX" style="height:25px;margin-left:10px"/></a>
</h3>
</header>
<div id="app" style="width: 100%; top: 60px; bottom: 0; position: absolute; margin: 0; padding:0;"></div>
<script src="prism.js"></script>
<script>
var today = new Date();
today.setUTCHours(24, 0, 0, 0);
var baseUrl = '//emg.pass.copernicus.eu/';
var baseUrlsWMTS = [
'//a.emg.pass.copernicus.eu/cache/ows/wmts',
'//b.emg.pass.copernicus.eu/cache/ows/wmts',
'//c.emg.pass.copernicus.eu/cache/ows/wmts',
'//d.emg.pass.copernicus.eu/cache/ows/wmts',
'//e.emg.pass.copernicus.eu/cache/ows/wmts',
'//f.emg.pass.copernicus.eu/cache/ows/wmts',
'//g.emg.pass.copernicus.eu/cache/ows/wmts',
'//h.emg.pass.copernicus.eu/cache/ows/wmts',
];
var baseUrlsOws = [
'//a.emg.pass.copernicus.eu/ows',
'//b.emg.pass.copernicus.eu/ows',
'//c.emg.pass.copernicus.eu/ows',
'//d.emg.pass.copernicus.eu/ows',
'//e.emg.pass.copernicus.eu/ows',
'//f.emg.pass.copernicus.eu/ows',
'//g.emg.pass.copernicus.eu/ows',
'//h.emg.pass.copernicus.eu/ows',
];
var config = {
"settings": {
"rightPanelOpen": true,
"leftPanelOpen": false,
"leftPanelTabIndex": 0,
"tutorial": "once",
"uploadEnabled": true,
"selectFilesDownloadEnabled": false,
"downloadEnabled": true,
"searchEnabled" : true,
"searchDebounceTime": 500,
"language": "en",
"timeDomain": [
"2008-01-01T00:00:00Z",
today,
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
],
"constrainTimeDomain": true,
"displayTimeDomain": [
"2019-01-01T00:00:00Z",
"2019-12-31T23:59:59Z",
],
"displayInterval": "P1096D",
"selectedTimeDomain": [
"2019-01-01T00:00:00Z",
"2019-12-31T23:59:59Z",
],
"selectableInterval": "P1096D",
"timeSliderControls": true,
"maxTooltips": 1,
"center": [12, 49],
"zoom": 5,
"maxZoom": 17,
"footprintFillColor": "rgba(0, 0, 0, 0.2)",
"footprintStrokeColor": "rgba(0, 0, 0, 1)",
"filterFillColor": "rgba(0, 165, 255, 0)",
"filterStrokeColor": "rgba(0, 165, 255, 1)",
"filterOutsideColor": "rgba(0, 0, 0, 0.5)",
"selectedFootprintFillColor": "rgba(255, 0, 0, 0.2)",
"selectedFootprintStrokeColor": "rgba(255, 0, 0, 1)",
"highlightFillColor": "rgba(246, 182, 0, 0.5)",
"highlightStrokeColor": "rgba(246, 182, 0, 1)",
"highlightStrokeWidth": 3,
"translations": {
"en": {
"Cloud Cover": "Cloud coverage (%)",
"Error: NoApplicableCode": "Search timed out. Please refine the filter criteria.",
}
},
"filterSettings": {
"time": {
"hidden": true,
}
},
"downloadFormats": [
{
"name": "TIFF",
"mimeType": "image/tiff"
},
{
"name": "JPEG 2000",
"mimeType": "image/jp2"
},
{
"name": "HDF",
"mimeType": "application/x-hdf",
},
],
"downloadProjections": [
{
"name": "WGS-84",
"identifier": "http://www.opengis.net/def/crs/EPSG/0/4326"
},
{
"name": "Web Mercator",
"identifier": "http://www.opengis.net/def/crs/EPSG/0/3857"
},
{
"name": "ETRS89 / LAEA Europe",
"identifier": "http://www.opengis.net/def/crs/EPSG/0/3035"
}
],
"downloadInterpolations": [
{
"name": "Bilinear",
"identifier": "http://www.opengis.net/def/interpolation/OGC/1/bilinear"
},
{
"name": "Nearest Neighbour",
"identifier": "http://www.opengis.net/def/interpolation/OGC/1/nearest-neighbour"
},
{
"name": "Average",
"identifier": "http://www.opengis.net/def/interpolation/OGC/1/average"
},
]
},
"baseLayers": [
{
"id": "terrain-light",
"displayName": "EOX Terrain-Light",
"display": {
"id": "terrain-light",
"visible": true,
"protocol": "WMTS",
"urls": [
"//a.s2maps-tiles.eu/wmts/",
"//b.s2maps-tiles.eu/wmts/",
"//c.s2maps-tiles.eu/wmts/",
"//d.s2maps-tiles.eu/wmts/",
"//e.s2maps-tiles.eu/wmts/"
],
"matrixSet": "WGS84",
"format": "image/png",
"projection": "EPSG:4326",
"style": "default",
"attribution": "Terrain-Light { Data © <a href=\"//www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap</a> contributors and <a href='javascript:;' onClick='toggle(terrain_attribution)'>others</a>, Rendering © <a href=\"//eox.at\" target=\"_blank\">EOX</a> }"
}
}, {
"id": "terrain",
"displayName": "EOX Terrain",
"display": {
"id": "terrain",
"visible": false,
"protocol": "WMTS",
"urls": [
"//a.s2maps-tiles.eu/wmts/",
"//b.s2maps-tiles.eu/wmts/",
"//c.s2maps-tiles.eu/wmts/",
"//d.s2maps-tiles.eu/wmts/",
"//e.s2maps-tiles.eu/wmts/"
],
"matrixSet": "WGS84",
"format": "image/png",
"projection": "EPSG:4326",
"style": "default",
"attribution": "Terrain { Data © <a href=\"//www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap</a> contributors and <a href='javascript:;' onClick='toggle(terrain_attribution)'>others</a>, Rendering © <a href=\"//eox.at\" target=\"_blank\">EOX</a> }"
}
}, {
"id": "s2cloudless",
"displayName": "EOX Sentinel-2 cloudless",
"display": {
"id": "s2cloudless-2018",
"visible": false,
"protocol": "WMTS",
"urls": [
"//a.s2maps-tiles.eu/wmts/",
"//b.s2maps-tiles.eu/wmts/",
"//c.s2maps-tiles.eu/wmts/",
"//d.s2maps-tiles.eu/wmts/",
"//e.s2maps-tiles.eu/wmts/"
],
"matrixSet": "WGS84",
"format": "image/png",
"projection": "EPSG:4326",
"style": "default",
"attribution": "<a xmlns:dct=\"//purl.org/dc/terms/\" href=\"//s2maps.eu\" property=\"dct:title\">Sentinel-2 cloudless - //s2maps.eu</a> by <a xmlns:cc=\"//creativecommons.org/ns#\" href=\"s://eox.at\" property=\"cc:attributionName\" rel=\"cc:attributionURL\">EOX IT Services GmbH</a> (Contains modified Copernicus Sentinel data 2017 & 2018)"
}
}
],
"layers": [
{
"id": 'Emergency',
"displayName": 'Emergency',
"displayColor": '#eb3700',
"display": {
"id": 'Emergency__TRUE_COLOR',
"visible": true,
"protocol": 'WMTS',
"urls": baseUrlsWMTS,
"format": 'image/png',
"projection": 'EPSG:4326',
"matrixSet": "WGS84",
"style": 'default',
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
"useMilliseconds": false,
"maxZoom": 17,
"options": [{
"name": "Style",
"target": "display.extraParameters.LAYERS",
"values": [{
"label": "Emergency True Color",
"value": "Emergency__TRUE_COLOR",
}, {
"label": "Emergency False Color",
"value": "Emergency__FALSE_COLOR",
}, {
"label": "Emergency NDVI",
"value": "Emergency__NDVI",
}]
}],
},
"search": {
"protocol": "OpenSearch",
"url": baseUrl + "opensearch/collections/Emergency/",
"id": "Emergency",
"histogramBinCount": 28,
"format": "application/atom+xml",
"method": "GET",
"histogramThreshold": 600,
"lightweightBuckets": true,
"searchLimit": 600,
"loadMore": 600,
"pageSize": 200,
"countZeroRecords": true,
"parameters": [
{
"max": 100,
"min": 0,
"range": true,
"type": "eo:cloudCover",
"title": "Cloud Coverage"
},
{
"type": "geo:uid",
"title": "Product ID"
},
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
],
"parametersFilterSettings": {
"collapsed": false,
},
},
"download": {
"protocol": "EO-WCS",
"url": baseUrl + "ows",
// "method": "GET",
"rewrite": {
// add __coverage to the coverageId
"from": "({{id}})",
"to": "$1__coverage"
}
}
},
],
"overlayLayers": [
{
"id": "overlay_base",
"displayName": "EOX Borders and Labels",
"display": {
"id": "overlay_base",
"visible": false,
"protocol": "WMTS",
"urls": [
"//a.s2maps-tiles.eu/wmts/",
"//b.s2maps-tiles.eu/wmts/",
"//c.s2maps-tiles.eu/wmts/",
"//d.s2maps-tiles.eu/wmts/",
"//e.s2maps-tiles.eu/wmts/"
],
"matrixSet": "WGS84",
"style": "default",
"format": "image/png",
"projection": "EPSG:4326",
"attribution": "Overlay { Data © <a href=\"//www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap</a> contributors, Rendering © <a href=\"//eox.at\" target=\"_blank\">EOX</a> and <a href=\"//github.com/mapserver/basemaps\" target=\"_blank\">MapServer</a> }"
}
},
{
"id": 'Emergency__outlines',
"displayName": 'Emergency Outlines',
"displayColor": '#187465',
"display": {
"id": 'Emergency__outlines',
"visible": false,
"protocol": 'WMS',
"urls": baseUrlsOws,
"format": 'image/png',
"projection": 'EPSG:4326',
"style": 'red',
"useMilliseconds": false,
"maxZoom": 17,
"synchronizeTime": true,
},
}
]
};
var app = new Application({
config: config,
container: document.getElementById('app'),
});
app.start();
</script>
</body>
</html>