diff --git a/helper-img/heal-map-client-helper-geojson-import.sh b/helper-img/heal-map-client-helper-geojson-import.sh index d0fc14a2..4a922c31 100644 --- a/helper-img/heal-map-client-helper-geojson-import.sh +++ b/helper-img/heal-map-client-helper-geojson-import.sh @@ -1,28 +1,29 @@ #!/bin/bash # ORS heal-map-client-helper-geojson-import ######################################################################################################################## -rclone config create heal s3 --non-interactive --quiet \ +rclone config create heal s3 --non-interactive --quiet \ provider=Minio \ access_key_id="$HEAL_KEY_ID" \ secret_access_key="$HEAL_ACCESS_KEY" \ endpoint="$HEAL_URL" \ acl=private -echo "Downloading index.json..." -rclone copyto heal:/"$HEAL_BUCKET"/"$HEAL_PREFIX"/output/index.json ./aois/index.json --quiet +echo "Downloading countries.json..." +rclone copyto heal:/"$HEAL_BUCKET"/"$HEAL_PREFIX"/output/countries.json ./aois/countries.json --quiet ######################################################################################################################## echo "Downloading corresponding GeoJSON files..." mkdir -p aois - -while IFS= read -r state; do - while IFS= read -r city; do - echo " Downloading germany/aois/${state}/${city}.geojson..." - rclone copyto \ - heal:/"$HEAL_BUCKET"/"$HEAL_PREFIX"/output/aois/germany/"${state}"/"${city}".geojson \ - ./aois/"${state}"/"${city}".geojson --quiet - done < <(jq -r --arg s "$state" '.[$s][]' ./aois/index.json) -done < <(jq -r 'keys[]' ./aois/index.json) +while IFS= read -r country; do + while IFS= read -r state; do + while IFS= read -r city; do + echo " Downloading /aois/${country}/${state}/${city}.geojson..." + rclone copyto \ + heal:/"$HEAL_BUCKET"/"$HEAL_PREFIX"/output/aois/"${country}"/"${state}"/"${city}".geojson \ + ./aois/"${country}"/"${state}"/"${city}".geojson --quiet + done < <(jq -r --arg c "$country" --arg s "$state" '.[$c][$s][]' ./aois/countries.json) + done < <(jq -r --arg c "$country" '.[$c] | keys[]' ./aois/countries.json) +done < <(jq -r 'keys[]' ./aois/countries.json) find ./aois diff --git a/package.json b/package.json index b50cbe61..eed998ec 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ors-maps-client", - "version": "3.0.6", + "version": "3.0.7", "private": false, "description": "Openrouteservice maps client", "repository": "https://github.com/GIScience/ors-map-client", diff --git a/src/app.js b/src/app.js index 2306bca0..08d22fb4 100755 --- a/src/app.js +++ b/src/app.js @@ -7,7 +7,7 @@ import Info from '@/fragments/dialogs/info/Info' import MainMenu from '@/common/main-menu' import utils from '@/support/utils' import {EventBus} from '@/common/event-bus' -import CitySelector from '@/fragments/city-selector/CitySelector.vue'; +import CitySelector from '@/fragments/city-selector/CitySelector.vue' export default { diff --git a/src/config-examples/app-config-example.js b/src/config-examples/app-config-example.js index e1410f1b..6344ca90 100755 --- a/src/config-examples/app-config-example.js +++ b/src/config-examples/app-config-example.js @@ -23,6 +23,7 @@ const appConfig = { setCustomMenuIcons: true, // If the icons of the menu loaded must be customized via (only necessary if useORSMenu is true) baseMenuExternalUrl: 'https://openrouteservice.org' // The base url to retrieve the menu items }, + defaultCountry: 'germany', defaultState: 'baden-wuerttemberg', defaultCity: 'heidelberg', defaultLocale: 'de-de', // only set as default a locale that is present in the app. By default, they are: 'en-us', 'de-de' and 'pt-br' diff --git a/src/fragments/city-selector/CitySelector.vue b/src/fragments/city-selector/CitySelector.vue index 4e628477..b915da10 100644 --- a/src/fragments/city-selector/CitySelector.vue +++ b/src/fragments/city-selector/CitySelector.vue @@ -1,11 +1,19 @@