Skip to content

Commit 77e22a1

Browse files
committed
openstreetmap attribution on map in new municipality mode
1 parent 6f73c0a commit 77e22a1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

vue/src/components/SnapshotMap.vue

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<!-- eslint-disable -->
2+
<i18n>
3+
{
4+
"de": {
5+
"map": "Karte"
6+
},
7+
"fr": {
8+
"map": "Carte"
9+
}
10+
}
11+
</i18n>
12+
<!-- eslint-enable -->
13+
114
<template>
215
<v-content>
316
<v-slide-x-reverse-transition>
@@ -46,6 +59,13 @@
4659
:sources="sources"
4760
/>
4861
</v-card>
62+
<p
63+
v-if="!hash"
64+
id="mapattribution"
65+
class="small mb-0"
66+
>
67+
<a href="https://www.openstreetmap.org/copyright" target="_blank">{{ $t('map') }}: Mapbox, © OpenStreetMap</a>
68+
</p>
4969
</v-content>
5070
</template>
5171

@@ -103,6 +123,11 @@ body,
103123
pointer-events: auto;
104124
clip-path: circle(100% at center);
105125
}
126+
#mapattribution {
127+
position: absolute;
128+
bottom: 0.5em;
129+
right: 1em;
130+
}
106131
107132
.mapbox-improve-map {
108133
display: none;

0 commit comments

Comments
 (0)