EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 9c291bde authored by Fabian Schindler's avatar Fabian Schindler
Browse files

Adjusting index.html template

parent 5cb08490
No related branches found
No related tags found
2 merge requests!37Chart,!36Staging to master to prepare 1.0.0 release
......@@ -184,12 +184,13 @@ var config = {
}
],
"layers": [
{{- range $layer_id, $layer := .Values.config.client.layers }}
{
"id": 'VHR_IMAGE_2018_Level_1',
"displayName": 'VHR Image 2018 Level 1',
"displayColor": '#eb3700',
"id": {{ $layer_id | quote }},
"displayName": {{ $layer.title | quote }},
"displayColor": {{ $layer.display_color | default "eb3700" | quote }},
"display": {
"id": 'VHR_IMAGE_2018_Level_1__TRUE_COLOR',
"id": {{ $layer.layer | quote }},
"visible": false,
"protocol": 'WMTS',
"urls": baseUrlsWMTS,
......@@ -202,120 +203,20 @@ var config = {
"options": [{
"name": "Style",
"target": "display.extraParameters.LAYERS",
"values": [{
"label": "VHR Image 2018 True Color",
"value": "VHR_IMAGE_2018_Level_1__TRUE_COLOR",
}, {
"label": "VHR Image 2018 True Color with masked validity",
"value": "VHR_IMAGE_2018_Level_1__masked_validity",
}, {
"label": "VHR Image 2018 False Color",
"value": "VHR_IMAGE_2018_Level_1__FALSE_COLOR",
}, {
"label": "VHR Image 2018 NDVI",
"value": "VHR_IMAGE_2018_Level_1__NDVI",
}]
}],
},
"search": {
"protocol": "OpenSearch",
"url": baseUrl + "opensearch/collections/VHR_IMAGE_2018_Level_1/",
"id": "VHR_IMAGE_2018_Level_1",
"histogramBinCount": 28,
"format": "application/atom+xml",
"method": "GET",
"histogramThreshold": 600,
"lightweightBuckets": true,
"searchLimit": 600,
"loadMore": 600,
"pageSize": 200,
"countZeroRecords": true,
"parameters": [
{
"type": "eo:sensorMode",
"name": "Sensor",
"title": "Sensor Mode"
},
{
"max": 100,
"min": 0,
"step": 1,
"range": true,
"type": "eo:cloudCover",
"name": "Cloud Coverage",
"title": "Cloud Coverage in percent"
},
"values": [
{{- range $sub_layer_id, $sub_layer := $layer.sub_layers -}}
{
"max": 360,
"min": 0,
"step": 1,
"range": true,
"type": "eo:acrossTrackIncidenceAngle",
"name": "Offnadir angle",
"title": "Across Track Incidence Angle in degrees"
},
{
"max": 360,
"min": 0,
"step": 1,
"range": true,
"type": "eo:illuminationAzimuthAngle",
"name": "Sun elevation",
"title": "Illumination Azimuth Angle in degrees"
"label": {{ $sub_layer.label | quote }},
"value": {{ $sub_layer_id | quote }},
},
],
"parametersFilterSettings": {
"collapsed": false,
},
},
"download": {
"protocol": "EO-WCS",
"url": baseUrl + "ows",
// "method": "GET",
"rewrite": {
// add __coverage to the coverageId
"from": "({{ "{{" }}id}})",
"to": "$1__coverage"
}
}
},
{
"id": 'VHR_IMAGE_2018_Level_3',
"displayName": 'VHR Image 2018 Level 3',
"displayColor": '#37eb00',
"display": {
"id": 'VHR_IMAGE_2018_Level_3__TRUE_COLOR',
"visible": true,
"protocol": 'WMTS',
"urls": baseUrlsWMTS,
"format": 'image/png',
"projection": 'EPSG:4326',
"matrixSet": "WGS84",
"style": 'default',
"useMilliseconds": false,
"maxZoom": 17,
"options": [{
"name": "Style",
"target": "display.extraParameters.LAYERS",
"values": [{
"label": "VHR Image 2018 True Color",
"value": "VHR_IMAGE_2018_Level_3__TRUE_COLOR",
}, {
"label": "VHR Image 2018 True Color with masked validity",
"value": "VHR_IMAGE_2018_Level_3__masked_validity",
}, {
"label": "VHR Image 2018 False Color",
"value": "VHR_IMAGE_2018_Level_3__FALSE_COLOR",
}, {
"label": "VHR Image 2018 NDVI",
"value": "VHR_IMAGE_2018_Level_3__NDVI",
}]
{{- end -}}
]
}],
},
"search": {
"protocol": "OpenSearch",
"url": baseUrl + "opensearch/collections/VHR_IMAGE_2018_Level_3/",
"id": "VHR_IMAGE_2018_Level_3",
"url": baseUrl + "opensearch/collections/{{ $layer_id }}/",
"id": {{ $layer_id }},
"histogramBinCount": 28,
"format": "application/atom+xml",
"method": "GET",
......@@ -373,7 +274,8 @@ var config = {
"to": "$1__coverage"
}
}
},
}
{{- end -}}
],
"overlayLayers": [
{
......@@ -397,12 +299,13 @@ var config = {
"attribution": "Overlay { Data &copy; <a href=\"//www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap</a> contributors, Rendering &copy; <a href=\"//eox.at\" target=\"_blank\">EOX</a> and <a href=\"//github.com/mapserver/basemaps\" target=\"_blank\">MapServer</a> }"
}
},
{{- range $layer_id, $layer := .Values.config.client.overlay_layers }}
{
"id": 'VHR_IMAGE_2018_Level_3__outlines',
"displayName": 'VHR Image 2018 Level 3 Outlines',
"displayColor": '#187465',
"id": {{ $layer_id | quote }},
"displayName": {{ $layer.title | quote }},
"displayColor": {{ $layer.display_color | quote }},
"display": {
"id": 'VHR_IMAGE_2018_Level_3__outlines',
"id": {{ $layer.layer | quote }},
"visible": false,
"protocol": 'WMS',
"urls": baseUrlsOws,
......@@ -414,54 +317,7 @@ var config = {
"synchronizeTime": true,
},
},
{
"id": 'VHR_IMAGE_2018_Level_3__masked_validity__Full',
"displayName": 'VHR Image 2018 Level 3 True Color with masked validity Full Coverage',
"display": {
"id": 'VHR_IMAGE_2018_Level_3__masked_validity__Full',
"visible": false,
"protocol": 'WMTS',
"urls": baseUrlsWMTS,
"format": 'image/png',
"projection": 'EPSG:4326',
"matrixSet": "WGS84",
"maxZoom": 17,
"synchronizeTime": false,
"style": "default",
},
},
{
"id": 'VHR_IMAGE_2018_Level_3__Full',
"displayName": 'VHR Image 2018 Level 3 True Color Full Coverage',
"display": {
"id": 'VHR_IMAGE_2018_Level_3__Full',
"visible": false,
"protocol": 'WMTS',
"urls": baseUrlsWMTS,
"format": 'image/png',
"projection": 'EPSG:4326',
"matrixSet": "WGS84",
"maxZoom": 17,
"synchronizeTime": false,
"style": "default",
},
},
{
"id": 'VHR_IMAGE_2018_Level_3__FALSE_COLOR__Full',
"displayName": 'VHR Image 2018 Level 3 False Color Full Coverage',
"display": {
"id": 'VHR_IMAGE_2018_Level_3__FALSE_COLOR__Full',
"visible": false,
"protocol": 'WMTS',
"urls": baseUrlsWMTS,
"format": 'image/png',
"projection": 'EPSG:4326',
"matrixSet": "WGS84",
"maxZoom": 17,
"synchronizeTime": false,
"style": "default",
},
}
{{- end -}}
]
};
......
......@@ -133,6 +133,9 @@ config:
expires: 3600
key: /{tileset}/{grid}/{dim}/{z}/{x}/{y}.{ext}
tilesets:
VHR_IMAGE_2018:
title: VHR Image 2018 True Color
abstract: VHR Image 2018 True Color
VHR_IMAGE_2018__TRUE_COLOR:
title: VHR Image 2018 True Color
abstract: VHR Image 2018 True Color
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment