Skip to content

Commit

Permalink
#81: Attempt to fix areas not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVanDyck committed Sep 9, 2024
1 parent ca84562 commit dab1418
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 13 deletions.
1 change: 1 addition & 0 deletions config/common/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ skin:
orgNameLong: Vlaams Biodiversiteitsportaal
orgNameShort: VBP
fluidLayout: true
favicon: '${common.protocol}://branding.${common.domain}/favicon.ico'

# Healthcheck endpoint
management:
Expand Down
177 changes: 164 additions & 13 deletions config/spatial-hub/spatial-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"

Expand Down Expand Up @@ -277,7 +431,4 @@ projection:
# latitude: 60
# longitude: 0
# zoom: 1
#

spApp:
optionsDownloadMap: false
#

0 comments on commit dab1418

Please sign in to comment.