From dab1418daef22fe327dc5eacdef422b8de70a09c Mon Sep 17 00:00:00 2001 From: Stefan Van Dyck Date: Mon, 9 Sep 2024 17:26:06 +0200 Subject: [PATCH] #81: Attempt to fix areas not showing --- config/common/common.yml | 1 + config/spatial-hub/spatial-hub.yml | 177 ++++++++++++++++++++++++++--- 2 files changed, 165 insertions(+), 13 deletions(-) diff --git a/config/common/common.yml b/config/common/common.yml index cb2cfc16..8a456b1d 100644 --- a/config/common/common.yml +++ b/config/common/common.yml @@ -26,6 +26,7 @@ skin: orgNameLong: Vlaams Biodiversiteitsportaal orgNameShort: VBP fluidLayout: true + favicon: '${common.protocol}://branding.${common.domain}/favicon.ico' # Healthcheck endpoint management: diff --git a/config/spatial-hub/spatial-hub.yml b/config/spatial-hub/spatial-hub.yml index 5ee6bdd3..98f9f9b9 100644 --- a/config/spatial-hub/spatial-hub.yml +++ b/config/spatial-hub/spatial-hub.yml @@ -14,15 +14,172 @@ grails: serverURL: "${common.protocol}://spatial.${common.domain}" app: context: "/" +i18n: + region: 'nl' -googleAnalyticsId: "UA-XXXXX" -google: - apikey: "get-a-google-api-key" +viewConfig: + json: 'view-config.json' -fathomId: "" +# List of valid user roles. +# Use '*' for ANY role (login will be required). +# Use an empty list for 'login is not required' +user_roles: [] -i18n: - region: "default" + +# fq applied to every biocache-service query +qc: "" + +# +# spApp configuration +# +spApp: + # show "map options" and associated controls in the list of layers + mapOptions: true + # show map control for collapsing up and hiding the header + collapseUp: true + # show map control for collapsing left and hiding left panel + collapseLeft: true + # show map control that displays the cursor coordinates (on the lower left of the map, above the scale) + cursorCoordinates: true + # show map control that displays the quicklinks + quicklinks: true + # show "map options" button "Add WMS Layer" + optionsAddWms: true + # show "map options" button "Download Map" + optionsDownloadMap: false + # show "map options" button "Reset Map" + optionsResetMap: true + # show "map options" section to change the base map + optionsSelectBaseMap: true + # load the layerDistances data to display the layer selection list's traffic light indicator + layerDistances: true + # show the "add to map | area | google location search" option + googleLocation: true + # show the left panel by default + leftPanel: true + # show the header by default + header: true + # list charts to show on species info page + charts: + genus: + title: "By genus" + chartType: "doughnut" + emptyValueMsg: "Genus not specified" + hideEmptyValues: true + disableBiocacheQueryOnClick: true + collection_uid: + title: "By collection" + chartType: "doughnut" + emptyValueMsg: "Collection not specified" + hideEmptyValues: true + disableBiocacheQueryOnClick: true + assertions: + title: "By data assertion" + chartType: "horizontal-bar" + emptyValueMsg: "Assertion not specified" + hideEmptyValues: true + disableBiocacheQueryOnClick: true + type_status: + title: "By type status (as % of all type specimens)" + chartType: "doughnut" + emptyValueMsg: "Type status not specified" + hideEmptyValues: true + disableBiocacheQueryOnClick: true + state_conservation: + title: "By state conservation status" + chartType: "bar" + emptyValueMsg: "State conservation not specified" + hideEmptyValues: true + disableBiocacheQueryOnClick: true + month: + title: "By month" + chartType: "bar" + emptyValueMsg: "Month not specified" + hideEmptyValues: true + disableBiocacheQueryOnClick: true + decade: + title: "By decade" + chartType: "bar" + emptyValueMsg: "Year not specified" + hideEmptyValues: true + disableBiocacheQueryOnClick: true + +rangeDataTypes: + - 'tint' + - 'int' + - 'tdouble' + - 'tfloat' + - 'tdate' + - 'float' + - 'double' + - 'date' + +numberOfIntervalsForRangeData: 7 +# +# portal.gsp layout options +# +#extraLinkUrl: "https://spatial-old.ala.org.au" +#extraLinkText: "Old site" + +date.facet: 'occurrence_date' +date.min: '1780-01-01' +date.max: '2030-01-01' + +# +# Override the list of grouped facets from biocache-service (biocacheService.url/search/grouped/facets). +# This is used in a drop down list within the 'Edit species layer' section that is used to colour or facet +# upon the species layer. +# +#groupedFacets: +# - title: 'group 1 title' +# facets: +# - field: "SOLR field name" (mandatory) +# sort: 'index' for non-numeric fields OR 'count' or numeric fields (optional, default is index) +# description: 'label for the field' (optional, default is the SOLR field name) +# dwcTerm: 'Darwin Core term' (optional) +# i18nValues: true to translate facet values using biocache-service /facets/i18n OR false (optional, default is false) + +# +# Remove fields that are retrieved from biocache-service (biocacheService.url/search/grouped/facets) and +# (biocacheService.url/index/fields) +# +#fieldsIgnored: +# - field1 +# - field2 + +# +# Include or Exclude the 'Search facets...' option. This is used in a drop down list within the 'Edit species layer' +# section that is used to colour or facet upon the species layer. +# +facet.search: true + +# +# Include or Exclude the grouped facet listing. These grouped facets appear at the end of the drop down list +# within the 'Edit species layer' section that is used to colour or facet upon the species layer. +# +facet.list: true + +# +# Enabled multiple species layer filters within the 'Edit species layer' section. +# +filters.enabled: true + +# +# Enable workflow header button +# +workflow.enabled: true + +# +# List of workflowIds that operate on a species layer. These appear when clicking on the 'default filter' 'filter' +# in the `Edit species layer` section. +# +# These workflows will be forced to operate on the selected layer and should be public. +# +#workflow.speciesFilters: [ { name: 'CSDM default filter', workflowId: 52 } ] +workflow.speciesFilters: [] + +google: + apikey: "get-a-google-api-key" apiKeyCheckUrlTemplate: "${common.protocol}://auth.${common.domain}/apikey/ws/check?apikey={0}" autocompleteUrl: "${common.protocol}://species-ws.${common.domain}/search/auto.jsonp" @@ -54,9 +211,6 @@ userdetails: api: url: "${common.protocol}://auth.${common.domain}/userdetails/" -favicon: - url: "${common.protocol}://branding.${common.domain}/favicon.ico" - layersService: url: "${common.protocol}://spatial.${common.domain}/ws" @@ -277,7 +431,4 @@ projection: # latitude: 60 # longitude: 0 # zoom: 1 -# - -spApp: - optionsDownloadMap: false \ No newline at end of file +# \ No newline at end of file