22<i18n >
33{
44 "de": {
5- "calltoactionText": "Angebot für {municipalityText} einholen",
5+ "calltoactionText": "Angebot für Ihre Gemeinde einholen",
66 "hasSnapshot.title": "Datenverfügbarkeit",
77 "hasSnapshot.p1": "Für {municipalityText} stehen erste Daten zur Verfügung.",
8- "hasSnapshot.p2": "Erkunden Sie unsere weiteren Fallbeispiele um ein besseres Bild der Anwendungs-möglichkeiten für Ihre Gemeinde zu erhalten.",
8+ "hasSnapshot.p2": "Erkunden Sie unsere weiteren Fallbeispiele um ein besseres Bild der Möglichkeiten für Ihre Gemeinde zu erhalten.",
99 "noSnapshot.title": "Datenverfügbarkeit",
1010 "noSnapshot.municipalityText": "diese Gemeinde",
1111 "noSnapshot.p1": "Für {municipalityText} stehen zur Zeit noch keine Daten zur Verfügung.",
1212 "noSnapshot.p2": "Erkunden Sie unsere Fallbeispiele um ein besseres Bild der Möglichkeiten für Ihre Gemeinde zu erhalten."
1313 },
1414 "fr": {
15- "calltoactionText": "Veuillez recueillir l’offre pour votre commune",
15+ "calltoactionText": "Offre pour votre commune",
1616 "hasSnapshot.title": "Disponibilité des données",
17- "hasSnapshot.p1": "Les premières données concernants {municipalityText} sont disponibles.",
17+ "hasSnapshot.p1": "Les premières données concernant {municipalityText} sont disponibles.",
1818 "hasSnapshot.p2": "Prenez compte de nos études pour une meilleure vue d’ensemble des possibilitiées qui s’offrent à votre commune.",
1919 "noSnapshot.title": "Disponibilité des données",
2020 "noSnapshot.municipalityText": "cette communauté",
6464 </div >
6565 </div >
6666
67- <snapshot-list :snapshots =" snapshotsExamples" :exclude = " hash " />
67+ <snapshot-list :snapshots =" snapshotsExamples" />
6868 </div >
6969
7070 <v-toolbar
8282 <v-content >
8383 <v-slide-x-reverse-transition >
8484 <v-btn fab absolute small
85- style =" top :1.2em ; right :2 em ;"
85+ style =" top :1.2em ; right :1.3 em ;"
8686 color =" primary"
8787 v-if =" !snapshotnav"
8888 @click =" snapshotnav=!snapshotnav" >
@@ -162,6 +162,10 @@ body,
162162 opacity : 1 ;
163163 font-weight : 900 ;
164164}
165+
166+ h4 {
167+ margin-bottom : 0.8em ;
168+ }
165169 </style >
166170
167171<script >
@@ -194,7 +198,7 @@ export default {
194198 legend: [],
195199 municipalityName: ' ' ,
196200 snapshotsExamples: [],
197- snapshotnav: true ,
201+ snapshotnav: this . getInitialSnapshotnav () ,
198202 mapinfoopen: true
199203 };
200204 },
@@ -220,6 +224,16 @@ export default {
220224 },
221225
222226 methods: {
227+ getInitialSnapshotnav () {
228+ if (this .$route .params .hash ) {
229+ console .log (this .$vuetify .breakpoint .name );
230+ if (this .$vuetify .breakpoint .name === ' lg' ) {
231+ return true ;
232+ }
233+ return false ;
234+ }
235+ return true ;
236+ },
223237 async getSnapshot (hash ) {
224238 const result = await this .$apollo .query ({
225239 query: gql ` query getsnapshot ($hash : ID ! ) {
@@ -293,8 +307,8 @@ export default {
293307 this .geojson = result .data .municipality .perimeter ;
294308 this .geobounds = result .data .municipality .perimeterBounds ;
295309 this .snapshotsExamples = result .data .snapshots .edges ;
296- this .$store .commit (' setBfsnumber' , result .data .snapshot .bfsNumber );
297- this .$store .commit (' setBfsname' , result .data .snapshot .fullname );
310+ this .$store .commit (' setBfsnumber' , result .data .municipality .bfsNumber );
311+ this .$store .commit (' setBfsname' , result .data .municipality .fullname );
298312 },
299313
300314 createFeatureLayer (geojson ) {
@@ -353,9 +367,9 @@ export default {
353367 });
354368 } else if (this .bfsNumber ) { // empty municipality
355369 this .geojson .coordinates .forEach ((polygon ) => {
356- this .map .addLayer (L .polygon (polygon));
370+ this .map .addLayer (L .polygon (polygon, { color : ' #543076 ' } ));
357371 });
358- this .map .addLayer (L .mapbox .styleLayer (' mapbox://styles/gemeindescan/ck6qnoijj28od1is9u1wbb3vr ' ));
372+ this .map .addLayer (L .mapbox .styleLayer (' mapbox://styles/gemeindescan/ck6rp249516tg1iqkmt48o4pz ' ));
359373 }
360374 L .control .scale ({
361375 metric: true ,
0 commit comments