@@ -117,14 +120,21 @@ $letterSpacing: calc((78 / 1000) * 1em);
$printFontSizeRelToHeight: 0.8vh;
$printFontSize: max(max($printFontSizeRelToWidth, $printFontSizeRelToHeight), $minFontSize);
- // forcing the length of the logo to the 55mm expressed in the CD-Bund PDF guide.
- width: 55mm;
-
@include confederation-logo(
calc(0.66 * $printFontSize),
$printFontSize,
calc(1.2 * $printFontSize)
);
+
+ .swiss-confederation-text {
+ /* Prevent shrinking and ensure the width matches the content */
+ flex: 0 0 auto;
+ width: fit-content;
+ }
+ & {
+ // ensuring the logo and text have enough space
+ width: 100%;
+ }
}
.swiss-flag {
diff --git a/packages/mapviewer/src/router/index.js b/packages/mapviewer/src/router/index.js
index c787db2570..b85468f572 100644
--- a/packages/mapviewer/src/router/index.js
+++ b/packages/mapviewer/src/router/index.js
@@ -17,8 +17,9 @@ import EmbedView from '@/views/EmbedView.vue'
import LegacyParamsView from '@/views/LegacyParamsView.vue'
import MapView from '@/views/MapView.vue'
+import PrintLegendView from '../views/PrintLegendView.vue'
import PrintView from '../views/PrintView.vue'
-import { PRINT_VIEW } from './viewNames.js'
+import { PRINT_LEGEND_VIEW, PRINT_VIEW } from './viewNames'
const history = createWebHashHistory()
@@ -59,6 +60,14 @@ const router = createRouter({
requiresAppReady: true,
},
},
+ {
+ path: '/print-legend',
+ name: PRINT_LEGEND_VIEW,
+ component: PrintLegendView,
+ meta: {
+ requiresAppReady: true,
+ },
+ },
{
path: '/legacy',
name: LEGACY_PARAM_VIEW,
diff --git a/packages/mapviewer/src/router/viewNames.js b/packages/mapviewer/src/router/viewNames.js
index 8b73d66e16..43480a2394 100644
--- a/packages/mapviewer/src/router/viewNames.js
+++ b/packages/mapviewer/src/router/viewNames.js
@@ -2,7 +2,8 @@
export const MAP_VIEW = 'MapView'
export const EMBED_VIEW = 'EmbedView'
export const PRINT_VIEW = 'PrintView'
-export const MAP_VIEWS = [MAP_VIEW, EMBED_VIEW, PRINT_VIEW]
+export const PRINT_LEGEND_VIEW = 'PrintLegendView'
+export const MAP_VIEWS = [MAP_VIEW, EMBED_VIEW, PRINT_VIEW, PRINT_LEGEND_VIEW]
/** Legacy URL views used for startup */
export const LEGACY_PARAM_VIEW = 'LegacyParamsView'
diff --git a/packages/mapviewer/src/setup-fontawesome.js b/packages/mapviewer/src/setup-fontawesome.js
index b53f85cccd..a2201ab5a7 100644
--- a/packages/mapviewer/src/setup-fontawesome.js
+++ b/packages/mapviewer/src/setup-fontawesome.js
@@ -49,6 +49,7 @@ import {
faEnvelope,
faExpand,
faFilm,
+ faFolderTree,
faFont,
faGlobe,
faGripLinesVertical,
@@ -126,6 +127,7 @@ library.add(
faEnvelope,
faExpand,
faFilm,
+ faFolderTree,
faFont,
faGlobe,
faGripLinesVertical,
diff --git a/packages/mapviewer/src/views/PrintLegendView.vue b/packages/mapviewer/src/views/PrintLegendView.vue
new file mode 100644
index 0000000000..9a74d44d09
--- /dev/null
+++ b/packages/mapviewer/src/views/PrintLegendView.vue
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
+
+
diff --git a/packages/mapviewer/src/views/PrintView.vue b/packages/mapviewer/src/views/PrintView.vue
index eaaf606910..db2af523a3 100644
--- a/packages/mapviewer/src/views/PrintView.vue
+++ b/packages/mapviewer/src/views/PrintView.vue
@@ -1,6 +1,5 @@