replicaCount: 1
nameOverride:
fullNameOverride:

image:
  repository: registry.gitlab.eox.at/vs/client
  pullPolicy: IfNotPresent
  tag: ""

imagePullSecrets: []

config:
  # client time can be set to ISO 8601 datetime or following "special times":
  # "today", "customClientDatePast1", "customClientDatePast2", "customClientDatePast3", "customClientDatePast4"
  # "customClientDateFuture1", "customClientDateFuture2", "customClientDateFuture3", "customClientDateFuture4"
  # configured respectively by customClientDaysPast1 and customClientDaysFuture1 etc. to create a date by adding/subtracting x days from today's date
  # example values:
  # customClientDaysPast1: 30
  # customClientDaysFuture1: 3
  # selectedTimeDomain:
  #   - customClientDatePast1
  #   - customClientDateFuture1
  timeDomain:
    - "2019-01-01T00:00:00Z"
    - "today"
  displayTimeDomain:
    - "2019-01-01T00:00:00Z"
    - "2020-12-31T23:59:59Z"
  displayInterval: P1096D
  selectedTimeDomain:
    - "2020-08-01T00:00:00Z"
    - "2020-08-31T23:59:59Z"
  selectableInterval: P1096D
  center:
    - 12
    - 49
  zoom: 5
  minZoom: 1
  maxZoom: 17
  serviceUrl: "" # vs renderer/cache services url - if not set, either global.ingress.tls[0].hosts[0] is used or JS window.location.hostname as fallback
  clientHeaderHTML: '<header id="header" style="width: 100%; height:70px; position:absolute;"><h3 style="width:100%; text-align:center; color: #006699;">PRISM View Server (PVS) Client powered by <a href="//eox.at"><img src="//eox.at/EOX_Logo.svg" alt="EOX" style="height:25px;margin-left:10px"/></a></h3></header>'
  clientHeaderHeight: 70px
  leftPanelOpen: true
  rightPanelOpen: true
  leftPanelTabIndex: 1
  rightPanelTabIndex: 0
  tutorial: once
  enable3D: false
  mapMode: 2D
  terrainUrl: ""
  uploadEnabled: true
  areaFilterLayerExtent: false
  selectFilesDownloadEnabled: false
  downloadEnabled: true
  searchEnabled: true
  disableTimeSlider: false
  enableDynamicHistogram: false
  timeSliderAlternativeBrush: false
  language: "en"
  enableSingleLayerMode: false
  maxTooltips: 1
  disableSearchParams: false
  enableGetEOCoverageSet: true
  maxSocketsPerHostSearch: 6
  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" },
    ]
  multiDownloadFormats:
    [
      { "name": "ZIP", "mimeType": "application/zip" },
      { "name": "TAR", "mimeType": "application/tar" },
      { "name": "GZIP", "mimeType": "application/gzip" },
    ]
  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/",
              ],
            "description": '<div><b>EOX Terrain Light</b> Tile service provides an idea of land usage and topography. It is based on following public data: <ul class="list-unstyled"><li><a href="//openstreetmap.org/copyright" target="_blank">OpenStreetMap</a></li><li><a href="//naturalearthdata.com/about/terms-of-use/" target="_blank">NaturalEarth public domain</a></li><li><a href="//gebco.net" target="_blank">GEBCO</a></li><li><a href="//asterweb.jpl.nasa.gov/gdem.asp" target="_blank">ASTER GDEM</a></li><li><a href="//lta.cr.usgs.gov/GTOPO30" target="_blank">GTOPO30</a></li></ul><p>More information on: <a href="//s2maps.eu/" target="_blank">s2maps.eu</a> and <a href="//maps.eox.at" target="_blank">maps.eox.at</a></p></div>',
            "infoPopup:": true,
            "matrixSet": "WGS84",
            "format": "image/png",
            "projection": "EPSG:4326",
            "style": "default",
            "attribution": 'Terrain-Light { Data &copy; <a href="//openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors and <a href=''javascript:;'' onClick=''toggle(terrain_attribution)''>others</a>, Rendering &copy; <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/",
              ],
            "infoPopup:": true,
            "description": '<div><b>EOX Terrain</b> Tile service provides an idea of land usage and topography. It is based on following public data: <ul class="list-unstyled"><li><a href="//openstreetmap.org/copyright" target="_blank">OpenStreetMap</a></li><li><a href="//naturalearthdata.com/about/terms-of-use/" target="_blank">NaturalEarth public domain</a></li><li><a href="//nasa.gov" target="_blank">NASA SRTM</a></li><li>EUDEM</li><li><a href="//lta.cr.usgs.gov/GTOPO30" target="_blank">GTOPO30</a></li><li><a href="//due.esrin.esa.int/page_globcover.php" target="_blank">GlobCover</a></li></ul><p>More information on: <a href="//s2maps.eu/" target="_blank">s2maps.eu</a> and <a href="//maps.eox.at" target="_blank">maps.eox.at</a></p></div>',
            "matrixSet": "WGS84",
            "format": "image/png",
            "projection": "EPSG:4326",
            "style": "default",
            "attribution": 'Terrain { Data &copy; <a href="//openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors and <a href=''javascript:;'' onClick=''toggle(terrain_attribution)''>others</a>, Rendering &copy; <a href="//eox.at" target="_blank">EOX</a> }',
          },
      },
      {
        "id": "s2cloudless",
        "displayName": "EOX Sentinel-2 cloudless",
        "display":
          {
            "id": "s2cloudless-2021",
            "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/",
              ],
            "infoPopup:": true,
            "description": '<div><p><b>EOX Sentinel-2 cloudless</b> Tile service providing an (almost) cloudless map of the world, crafted by EOX.</p><p>Uses Sentinel-2 L2A data for land surfaces, coastal waters and some islands as specified by the ESA (varies throughout the years) and a custom bathymetry render fills the oceans.</p><p>More information on: <a href="//s2maps.eu/" target="_blank">s2maps.eu</a> and <a href="//maps.eox.at" target="_blank">maps.eox.at</a></p></div>',
            "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 2021)',
          },
      },
    ]
  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/",
              ],
            "infoPopup:": true,
            "description": '<div><b>EOX Overlay base</b> Tile service shows labels and line features like borders or streets to provide more detailed information. It is based on following public data: <ul class="list-unstyled"><li><a href="//openstreetmap.org/copyright" target="_blank">OpenStreetMap</a></li><li><a href="//naturalearthdata.com/about/terms-of-use/" target="_blank">NaturalEarth public domain</a></li></ul><p>More information on: <a href="//s2maps.eu/" target="_blank">s2maps.eu</a> and <a href="//maps.eox.at" target="_blank">maps.eox.at</a></p></div>',
            "matrixSet": "WGS84",
            "style": "default",
            "format": "image/png",
            "projection": "EPSG:4326",
            "attribution": 'Overlay { Data &copy; <a href="//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> }',
          },
      },
    ]
service:
  type: ClusterIP
  port: 80

resources:
  limits:
    cpu: 0.5
    memory: 1Gi
  requests:
    cpu: 0.1
    memory: 0.1Gi

affinity: {}

livenessProbe:
  failureThreshold: 3
  tcpSocket:
    port: 80
  periodSeconds: 10
  successThreshold: 1
  timeoutSeconds: 1

ingress:
  enabled: true

global:
  metadata:
    title: View Service developed by EOX
    header: View Server (VS) 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>
  layers:
    - id: dummy_pansharpen
      title: dummyTitle
      displayColor: "#eb3700"
      parentLayer: dummy_pansharpen
      maxZoom: 18
      grids: &defaultGridOptions
        - name: WGS84
          zoom: 17
    - id: dummy_pansharpen__TRUE_COLOR
      title: dummy True Color
      parentLayer: dummy_pansharpen
      grids: *defaultGridOptions
    - id: dummy_pansharpen__TRUE_COLOR_PANSHARPEN
      title: dummy True Color Pansharpened
      parentLayer: dummy_pansharpen
      grids: *defaultGridOptions
    - id: dummy_pansharpen__FALSE_COLOR
      title: dummy False Color
      parentLayer: dummy_pansharpen
      grids: *defaultGridOptions
    - id: dummy_pansharpen__FALSE_COLOR_PANSHARPEN
      title: dummy False Color Pansharpened
      parentLayer: dummy_pansharpen
      grids: *defaultGridOptions
    - id: dummy_pansharpen__PAN
      title: dummy Panchromatic
      parentLayer: dummy_pansharpen
      grids: *defaultGridOptions
    - id: dummy_pansharpen__NDVI
      title: dummy NDVI
      parentLayer: dummy_pansharpen
      style: earth
      grids: *defaultGridOptions
    - id: dummy_sar
      title: EMG SAR
      displayColor: "#adfa28"
      parentLayer: dummy_sar
      maxZoom: 18
      grids: *defaultGridOptions
  overlayLayers:
    - id: dummy__outlines
      title: dummy combined outlines
  ingress:
    annotations:
      kubernetes.io/ingress.class: nginx
      kubernetes.io/tls-acme: "true"
      nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
      nginx.ingress.kubernetes.io/enable-cors: "true"
      cert-manager.io/cluster-issuer: letsencrypt
    hosts:
      - host: vs.local
    tls:
      - hosts:
          - vs.local
        secretName: vs-secret
      # hosts and tls will be redefined always