Skip to content

Commit 5f87c2f

Browse files
committed
Refactor sidebar and catalog
1 parent 31aed59 commit 5f87c2f

File tree

76 files changed

+2840
-571
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+2840
-571
lines changed

.github/workflows/code-quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
with:
9393
path: ./ui/node_modules
9494
key: "${{ runner.os }}-node_modules-${{ env.NODE_VERSION }}-${{ hashFiles('./ui/package-lock.json') }}"
95-
- name: Run build
95+
- name: Run check
9696
run: cd ui && npm run check
9797

9898

File renamed without changes.

ui/docs/layers.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Layers
2+
3+
_Layers_ are visual data sources that are rendered on the Viewer's map.
4+
They represent the application's core data and are subject to most of its functions.
5+
6+
## Configuration
7+
8+
Layers are configured in [layers/layers.json5](../../layers/layers.json5) and exposed via the API.
9+
10+
## Types of Layers
11+
12+
A layer's type defines how it is defined, fetched, displayed, as well as what can be done with it.
13+
Layers are divided into the following types:
14+
15+
- `Swisstopo` layers are [WMS](https://www.geo.admin.ch/de/wms-verfuegbare-dienste-und-daten/) or
16+
[WMTS](https://www.geo.admin.ch/de/wmts-verfuegbare-dienste-und-daten/) layers fetched from their respective `geo.admin.ch` API.
17+
They are flat map overlays.
18+
- `Tiff` layers are [GeoTIFF](https://www.earthdata.nasa.gov/about/esdis/esco/standards-practices/geotiff) files.
19+
They are flat map overlays that support multiple datasets on a single layer.
20+
- `Tiles3d` layers are [3D Tiles](https://cesium.com/why-cesium/3d-tiles/).
21+
These support displaying of 3d shapes of varying numbers, types, shapes and sizes.
22+
- `Voxel` layers are collections of 3d voxel tiles.

ui/locales/app/app.de.json

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
2-
"menu_layers": "Angezeigte Daten",
3-
"menu_tools": "Werkzeuge",
4-
"menu_share": "Teilen",
5-
"menu_projects": "Projekte",
6-
"menu_settings": "Einstellungen",
72
"accept": "Akzeptieren",
8-
"app_cancel_btn_label": "Abbrechen",
3+
"cancel": "Abbrechen",
4+
95
"app_close_btn_label": "Schliessen",
106
"by": "von",
117
"cam_configuration_header": "Kamera-Einstellungen",
@@ -21,7 +17,6 @@
2117
"camera_position_height_label": "Höhe",
2218
"camera_position_height_unit": "(m. ü. OKT)",
2319
"camera_position_pitch_label": "Neigungswinkel",
24-
"cancel": "Abbrechen",
2520
"contact_mailto_text": "Kontakt",
2621
"created_on": "Erstellt am",
2722
"dashboard_add_view": "Ansicht hinzufügen",
@@ -62,54 +57,34 @@
6257
"dtd_add_ion_asset_btn": "Hinzufügen",
6358
"dtd_add_ion_token": "Inhalte von Cesium ion hinzufügen",
6459
"dtd_ion_token_info": "Fügen sie 3D-Geodaten über die Cesium ion Plattform hinzu. Cesium ion bietet Zugriff auf Inhalte wie Bing Maps-Satellitenbilder oder Cesium OSM Buildings. Diese Daten lassen sich mit eigenen 3D-Geodaten kombinieren.",
65-
"dtd_kml_upload_button_title": "KML Daten hochladen",
66-
"dtd_kml_upload_button_subtitle": "Klicken um eine Datei auszuwählen, oder ziehen Sie eine Datei per Drag & Drop hierher",
67-
"dtd_upload_modal_title": "Upload",
68-
"dtd_kml_add_button_label": "Hinzufügen",
6960
"dtd_aerial_map_label": "Luftbild",
7061
"dtd_all_label": "Alle",
7162
"dtd_asset_exists_info": "Datensatz bereits hinzugefügt",
7263
"dtd_asset_added": "Daten hinzugefügt",
73-
"dtd_cant_upload_kml_error": "Fehler beim Hochladen von KML",
74-
"dtd_clamp_to_ground": "Auf Terrain legen",
7564
"dtd_displayed_data_label": "Angezeigte Daten",
7665
"dtd_download_hint": "Herunterladen / Legende",
77-
"dtd_exaggeration_map": "Vertikale Überhöhung",
78-
"dtd_file_not_kml": "Dateiformat wird nicht unterstützt. Nur KML erlaubt.",
7966
"dtd_grey_map_label": "Karte Grau",
8067
"dtd_hide": "Hintergrundkarte verbergen",
81-
"dtd_hide_exaggeration": "Vertikale Überhöhung verbergen",
8268
"dtd_ion_token_label": "Cesium Ion Token",
8369
"dtd_lakes_rivers_map_label": "Seen & Flüsse",
8470
"dtd_legend": "Legende",
8571
"dtd_documentation": "Dokumentation",
8672
"dtd_load_ion_assets_btn": "Datensätze laden",
87-
"dtd_max_size_exceeded_warn": "Maximale Dateigröße beträgt ",
88-
"dtd_no_file_to_upload_warn": "Keine Datei vorhanden",
8973
"dtd_object_on_coordinates_not_found_warning": "Objekt wurde nicht gefunden oder Kamera wurde von initialer Position wegbewegt",
9074
"dtd_opacity": "Deckkraft",
9175
"dtd_remove": "Entfernen",
9276
"dtd_remove_assets_confirmation": "Token hat geändert, aktuelle Datensätze werden entfernt",
9377
"dtd_show": "Hintergrundkarte anzeigen",
94-
"dtd_show_exaggeration": "Vertikale Überhöhung anzeigen",
9578
"dtd_time_journey": "Zeitreise",
9679
"dtd_voxel_filter": "Filter öffnen",
9780
"dtd_zoom_to": "Heranzoomen",
98-
"dtd_tab_labels": {
99-
"catalog": "Datenkatalog",
100-
"upload": "Upload",
101-
"options": "Einstellungen"
102-
},
10381
"dtd_background_label": "Hintergrund",
10482
"duplicate_to_project": "Zu Projekt duplizieren",
10583
"edit_project": "Projekt bearbeiten",
10684
"header_search_placeholder": "Suche nach...",
10785
"search_placeholder": "Suche...",
10886
"lsb_cesium_toolbar_label": "Cesium-Toolbar",
10987
"lsb_debug_tools": "Debugtools",
110-
"lsb_settings": "Einstellungen",
111-
"lsb_share": "Teilen",
112-
"lsb_tools": "Werkzeuge",
11388
"lyr_3d_model_berne_label": "3D-Modell Stadt Bern",
11489
"lyr_base_cenozoic_label": "Basis Känozoikum",
11590
"lyr_base_mesozoic_label": "Basis Mesozoikum",

ui/locales/app/app.en.json

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
2-
"menu_layers": "Data displayed",
3-
"menu_tools": "Tools",
4-
"menu_share": "Share",
5-
"menu_projects": "Projects",
6-
"menu_settings": "Settings",
72
"accept": "Accept",
8-
"app_cancel_btn_label": "Cancel",
3+
"cancel": "Cancel",
4+
95
"app_close_btn_label": "Close",
106
"by": "by",
117
"cam_configuration_header": "Camera configuration",
@@ -21,7 +17,6 @@
2117
"camera_position_height_label": "Height",
2218
"camera_position_height_unit": "(m AGL)",
2319
"camera_position_pitch_label": "Pitch",
24-
"cancel": "Cancel",
2520
"contact_mailto_text": "Contact",
2621
"created_on": "Created on",
2722
"dashboard_add_view": "Add view",
@@ -60,56 +55,35 @@
6055
"disclaimer_href": "https://www.swissgeol.ch/en/impressum",
6156
"disclaimer_text": "Copyright & data protection",
6257
"dtd_add_ion_asset_btn": "Add",
63-
"dtd_add_ion_token": "Add content from Cesium ion",
6458
"dtd_ion_token_info": "Add 3D geodata via the Cesium ion platform. Cesium ion offers access to content such as Bing Maps satellite images or Cesium OSM Buildings. This data can be combined with your own 3D geodata.",
65-
"dtd_kml_upload_button_title": "Upload KML data",
66-
"dtd_kml_upload_button_subtitle": "Click to browse, or drag & drop a file here",
67-
"dtd_upload_modal_title": "Upload",
68-
"dtd_kml_add_button_label": "Add",
6959
"dtd_aerial_map_label": "Aerial map",
7060
"dtd_all_label": "All",
7161
"dtd_asset_exists_info": "Dataset already added",
7262
"dtd_asset_added": "Data added",
73-
"dtd_cant_upload_kml_error": "Error while uploading KML",
74-
"dtd_clamp_to_ground": "Clamp to terrain",
7563
"dtd_displayed_data_label": "Data displayed",
7664
"dtd_download_hint": "Download / Legend",
77-
"dtd_exaggeration_map": "Vertical exaggeration",
78-
"dtd_file_not_kml": "File format not supported. Only KML can be uploaded.",
7965
"dtd_grey_map_label": "Grey map",
8066
"dtd_hide": "Hide",
81-
"dtd_hide_exaggeration": "Hide exaggeration",
8267
"dtd_ion_token_label": "Cesium Ion Token",
8368
"dtd_lakes_rivers_map_label": "Lakes & rivers",
8469
"dtd_legend": "Legend",
8570
"dtd_documentation": "Documentation",
8671
"dtd_load_ion_assets_btn": "Load the list of dataset",
87-
"dtd_max_size_exceeded_warn": "Maximum file size is ",
88-
"dtd_no_file_to_upload_warn": "No file to upload",
8972
"dtd_object_on_coordinates_not_found_warning": "Object not found or you moved camera away from initial position",
9073
"dtd_opacity": "Opacity",
9174
"dtd_remove": "Remove",
9275
"dtd_remove_assets_confirmation": "Token changed, current datasets will be removed.",
9376
"dtd_show": "Show",
94-
"dtd_show_exaggeration": "Show exaggeration",
9577
"dtd_time_journey": "Journey through time",
9678
"dtd_voxel_filter": "Open Filter",
9779
"dtd_zoom_to": "Zoom to",
98-
"dtd_tab_labels": {
99-
"catalog": "Data Catalog",
100-
"upload": "Upload",
101-
"options": "Options"
102-
},
10380
"dtd_background_label": "Background",
10481
"duplicate_to_project": "Duplicate to my projects",
10582
"edit_project": "Edit project",
10683
"header_search_placeholder": "Search by...",
10784
"search_placeholder": "Search...",
10885
"lsb_cesium_toolbar_label": "Cesium Toolbar",
10986
"lsb_debug_tools": "Debug tools",
110-
"lsb_settings": "Settings",
111-
"lsb_share": "Share",
112-
"lsb_tools": "Tools",
11387
"lyr_3d_model_berne_label": "City of Bern",
11488
"lyr_3d_local_models_label": "Local 3D models",
11589
"lyr_base_cenozoic_label": "Base Cenozoic",

ui/locales/app/app.fr.json

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
2-
"menu_layers": "Données Affichées",
3-
"menu_tools": "Outils",
4-
"menu_share": "Partager",
5-
"menu_projects": "Projets",
6-
"menu_settings": "Paramètres",
72
"accept": "Accepter",
8-
"app_cancel_btn_label": "Annuler",
3+
"cancel": "Annuler",
4+
95
"app_close_btn_label": "Fermer",
106
"by": "de",
117
"cam_configuration_header": "Configuration de la caméra",
@@ -21,7 +17,6 @@
2117
"camera_position_height_label": "Altitude",
2218
"camera_position_height_unit": "(m AGL)",
2319
"camera_position_pitch_label": "Inclinaison",
24-
"cancel": "Annuler",
2520
"contact_mailto_text": "Contact",
2621
"created_on": "Créé le",
2722
"dashboard_add_view": "Ajouter une vue",
@@ -60,56 +55,35 @@
6055
"disclaimer_href": "https://www.swissgeol.ch/fr/impressum",
6156
"disclaimer_text": "Conditions d'utilisation",
6257
"dtd_add_ion_asset_btn": "Ajouter",
63-
"dtd_add_ion_token": "Ajouter du contenu à propos de l'ion césium",
6458
"dtd_ion_token_info": "Cesium ion donne accès à des contenus tels que les images satellites Bing Maps ou Cesium OSM Buildings. Ces données peuvent être combinées avec vos propres géodonnées 3D.",
65-
"dtd_kml_upload_button_title": "Télécharger des données KML",
66-
"dtd_kml_upload_button_subtitle": "Cliquez pour naviguer, ou glissez-déposez un fichier ici",
67-
"dtd_upload_modal_title": "Upload",
68-
"dtd_kml_add_button_label": "Ajouter",
6959
"dtd_aerial_map_label": "Carte aérienne",
7060
"dtd_all_label": "Tous",
7161
"dtd_asset_exists_info": "Ensemble de données déjà ajouté",
7262
"dtd_asset_added": "Données ajoutées",
73-
"dtd_cant_upload_kml_error": "Erreur lors du téléchargement de KML",
74-
"dtd_clamp_to_ground": "Fixation au terrain",
7563
"dtd_displayed_data_label": "Données affichées",
7664
"dtd_download_hint": "Télécharger / Légende",
77-
"dtd_exaggeration_map": "Exagération verticale",
78-
"dtd_file_not_kml": "Format pas pris en charge. Seulement en format KML.",
7965
"dtd_grey_map_label": "Carte en niveaux de gris",
8066
"dtd_hide": "Cacher",
81-
"dtd_hide_exaggeration": "Cacher l'exagération",
8267
"dtd_ion_token_label": "Cesium Ion Token",
8368
"dtd_lakes_rivers_map_label": "Lacs et rivières",
8469
"dtd_legend": "Légende",
8570
"dtd_documentation": "Documentation",
8671
"dtd_load_ion_assets_btn": "Charger la liste des jeux de données",
87-
"dtd_max_size_exceeded_warn": "La taille maximale du fichier est de ",
88-
"dtd_no_file_to_upload_warn": "Aucun fichier à télécharger",
8972
"dtd_object_on_coordinates_not_found_warning": "Objet non trouvé ou caméra éloignée de sa position initiale",
9073
"dtd_opacity": "Opacité",
9174
"dtd_remove": "Enlever",
9275
"dtd_remove_assets_confirmation": "Token a changé, les données actuelles seront supprimées",
9376
"dtd_show": "Afficher",
94-
"dtd_show_exaggeration": "Montrer l'exagération",
9577
"dtd_time_journey": "Voyage dans le temps",
9678
"dtd_voxel_filter": "Ouvrir le filtre",
9779
"dtd_zoom_to": "Zoom sur",
98-
"dtd_tab_labels": {
99-
"catalog": "Catalogue de données",
100-
"upload": "Upload",
101-
"options": "Réglages"
102-
},
10380
"dtd_background_label": "Fond",
10481
"duplicate_to_project": "Dupliquer comme projet",
10582
"edit_project": "Editer projet",
10683
"header_search_placeholder": "Recherche par...",
10784
"search_placeholder": "Recherche...",
10885
"lsb_cesium_toolbar_label": "Cesium Toolbar",
10986
"lsb_debug_tools": "Debug tools",
110-
"lsb_settings": "Paramètres",
111-
"lsb_share": "Partager",
112-
"lsb_tools": "Outils",
11387
"lyr_3d_model_berne_label": "Modèle 3D Ville de Berne",
11488
"lyr_base_cenozoic_label": "Base du Cénozoïque",
11589
"lyr_base_mesozoic_label": "Base du Mésozoïque",

ui/locales/app/app.it.json

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
2+
"accept": "Accettare",
3+
"cancel": "Cancellare",
4+
25
"menu_layers": "Dati Visualizzati",
36
"menu_tools": "Strumenti",
47
"menu_share": "Condividi",
58
"menu_projects": "Progetti",
69
"menu_settings": "Impostazioni",
7-
"accept": "Accettare",
8-
"app_cancel_btn_label": "Cancellare",
910
"app_close_btn_label": "Chiudere",
1011
"by": "di",
1112
"cam_configuration_header": "Configurazione della camera",
@@ -21,7 +22,6 @@
2122
"camera_position_height_label": "Altitudine",
2223
"camera_position_height_unit": "(m AGL)",
2324
"camera_position_pitch_label": "Inclinazione",
24-
"cancel": "Annullare",
2525
"contact_mailto_text": "Contatto",
2626
"created_on": "Creato lo",
2727
"dashboard_add_view": "Aggiungi vista",
@@ -60,56 +60,35 @@
6060
"disclaimer_href": "https://www.swissgeol.ch/it/impressum",
6161
"disclaimer_text": "Copyright e dichiarazione della protezione dei diritti d'autore",
6262
"dtd_add_ion_asset_btn": "Aggiungi",
63-
"dtd_add_ion_token": "Aggiunta di contenuti da cesium ion",
6463
"dtd_ion_token_info": "Aggiungere geodati 3D tramite la piattaforma Cesium ion. Cesium ion offre l'accesso a contenuti come le immagini satellitari di Bing Maps o gli edifici OSM di Cesium. Questi dati possono essere combinati con i propri geodati 3D.",
65-
"dtd_kml_upload_button_title": "Caricare dati KML",
66-
"dtd_kml_upload_button_subtitle": "Fare clic per sfogliare o trascinare un file qui",
67-
"dtd_upload_modal_title": "Upload",
68-
"dtd_kml_add_button_label": "Aggiungi",
6964
"dtd_aerial_map_label": "Foto aerea",
7065
"dtd_all_label": "Tutti",
7166
"dtd_asset_exists_info": "Set di dati già aggiunto",
7267
"dtd_asset_added": "Dati aggiunti",
73-
"dtd_cant_upload_kml_error": "Errore nel download di KML",
74-
"dtd_clamp_to_ground": "Morsetto al terreno",
7568
"dtd_displayed_data_label": "Dati mostrati",
7669
"dtd_download_hint": "Scaricare / Scala",
77-
"dtd_exaggeration_map": "Esagerazione verticale",
78-
"dtd_file_not_kml": "Il formato non è supportato. Solo KML supportato.",
7970
"dtd_grey_map_label": "Mappa in scala di grigi",
8071
"dtd_hide": "Nascondere",
81-
"dtd_hide_exaggeration": "Nascondere l'esagerazione",
8272
"dtd_ion_token_label": "Cesium Ion Token",
8373
"dtd_lakes_rivers_map_label": "Laghi e fiumi",
8474
"dtd_legend": "Leggenda",
8575
"dtd_documentation": "Documentazione",
8676
"dtd_load_ion_assets_btn": "Carica l'elenco dei set di dati",
87-
"dtd_max_size_exceeded_warn": "La dimensione massima del file è ",
88-
"dtd_no_file_to_upload_warn": "Nessun file da scaricare",
8977
"dtd_object_on_coordinates_not_found_warning": "Oggetto non trovato o camera spostata dalla sua posizione originale",
9078
"dtd_opacity": "Opacità",
9179
"dtd_remove": "Rimuovere",
9280
"dtd_remove_assets_confirmation": "Il token è stato modificato, i set di dati attuali saranno rimossi.",
9381
"dtd_show": "Mostrare",
94-
"dtd_show_exaggeration": "Mostra l'esagerazione",
9582
"dtd_time_journey": "Viaggio nel tempo",
9683
"dtd_voxel_filter": "Aprire il filtro",
9784
"dtd_zoom_to": "Zoom su",
98-
"dtd_tab_labels": {
99-
"catalog": "Catalogo di dati",
100-
"upload": "Upload",
101-
"options": "Impostazioni"
102-
},
10385
"dtd_background_label": "Sfondo",
10486
"duplicate_to_project": "Duplicare nei progetti",
10587
"edit_project": "Editare progetto",
10688
"header_search_placeholder": "Ricercare per...",
10789
"search_placeholder": "Ricercare...",
10890
"lsb_cesium_toolbar_label": "Cesium Toolbar",
10991
"lsb_debug_tools": "Debug tools",
110-
"lsb_settings": "Impostazioni",
111-
"lsb_share": "Condividere",
112-
"lsb_tools": "Strumenti",
11392
"lyr_3d_model_berne_label": "Modello 3D Città di Berna",
11493
"lyr_base_cenozoic_label": "Base del Cenozoico",
11594
"lyr_base_mesozoic_label": "Base del Mesozoico",

ui/locales/catalog/catalog.de.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"tabs": {
3+
"Catalog": "Datenkatalog",
4+
"Upload": "Upload",
5+
"Options": "Einstellungen"
6+
},
7+
"exaggeration": {
8+
"title": "Vertikale Überhöhung",
9+
"show": "Vertikale Überhöhung anzeigen",
10+
"hide": "Vertikale Überhöhung verbergen"
11+
},
12+
"upload": {
13+
"select_file": "KML Daten hochladen",
14+
"select_file_hint": "Klicken um eine Datei auszuwählen, oder ziehen Sie eine Datei per Drag & Drop hierher",
15+
"file_not_selected": "Keine Datei vorhanden",
16+
"file_not_kml": "Dateiformat wird nicht unterstützt. Nur KML erlaubt.",
17+
"file_too_large": "Maximale Dateigröße beträgt {{limit}}",
18+
"file_upload_error": "Fehler beim Hochladen von KML",
19+
"modal": {
20+
"title": "Upload",
21+
"should_clamp_to_ground": "Auf Terrain legen",
22+
"confirm": "Hinzufügen"
23+
}
24+
},
25+
"add_content_from_cesium_ion": "Inhalte von Cesium ion hinzufügen"
26+
}

0 commit comments

Comments
 (0)