From d419d9d06398531ee966f4fc507b5a86ba0f103a Mon Sep 17 00:00:00 2001 From: Elia Bellavista Date: Sun, 26 May 2024 17:31:22 +0200 Subject: [PATCH] added stamen stadia as a spatial map provider --- ckan/docker-entrypoint.d/02_setup_spatial.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ckan/docker-entrypoint.d/02_setup_spatial.sh diff --git a/ckan/docker-entrypoint.d/02_setup_spatial.sh b/ckan/docker-entrypoint.d/02_setup_spatial.sh new file mode 100644 index 0000000..12045c5 --- /dev/null +++ b/ckan/docker-entrypoint.d/02_setup_spatial.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +if [[ $CKAN__PLUGINS == *"spatial_metadata"* ]]; then + echo "Configuring CKAN spatial ..." + + ckan config-tool $CKAN_INI "ckanext.spatial.common_map.type=Stadia.StamenTerrain" + ckan config-tool $CKAN_INI "ckanext.spatial.common_map.max_zoom=18" + # forse รจ da aggiungere un qualche tipo di key per production + +else + echo "Not configuring spatial, plugin not enabled." +fi