Mercurial > gemma
comparison client/src/components/Pdftool.vue @ 5435:351d38269e4e marking-single-beam
Display of the according type of sounding data in legend.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 13 Jul 2021 10:59:22 +0200 |
parents | 789cffef3362 |
children | 7a96321be219 |
comparison
equal
deleted
inserted
replaced
5434:789cffef3362 | 5435:351d38269e4e |
---|---|
813 this.soundingInfo && | 813 this.soundingInfo && |
814 this.soundingInfo.number > 0 && | 814 this.soundingInfo.number > 0 && |
815 this.soundingInfo.feature.properties.zpg_exception; | 815 this.soundingInfo.feature.properties.zpg_exception; |
816 | 816 |
817 let survey = this.selectedSurvey; | 817 let survey = this.selectedSurvey; |
818 | 818 const SURVEYTYPES = { |
819 marking: "Marking Vessel", | |
820 multi: "Multibeam", | |
821 single: "Singlebeam" | |
822 }; | |
819 // determine text dimensions | 823 // determine text dimensions |
820 // this is a little bit cumbersome but we need to separate width | 824 // this is a little bit cumbersome but we need to separate width |
821 // calculations and writing | 825 // calculations and writing |
822 this.pdf.doc.setFontSize(10); | 826 this.pdf.doc.setFontSize(10); |
823 this.pdf.doc.setTextColor(color); | 827 this.pdf.doc.setTextColor(color); |
824 let textOptions = { baseline: "hanging" }; | 828 let textOptions = { baseline: "hanging" }; |
825 let str1_1 = this.$gettext("Bottleneck") + ": "; | 829 let str1_1 = this.$gettext("Bottleneck") + ": "; |
826 let str1_2 = this.selectedBottleneck; | 830 let str1_2 = this.selectedBottleneck; |
827 let str2_1 = this.$gettext("Survey date") + ": "; | 831 let str2_1 = this.$gettext("Survey date") + ": "; |
828 let str2_2 = survey.date_info; | 832 let str2_2 = |
833 survey.date_info + " (" + SURVEYTYPES[survey["survey_type"]] + ")"; | |
829 let str3_1 = this.$gettext("Ref gauge") + ": "; | 834 let str3_1 = this.$gettext("Ref gauge") + ": "; |
830 let str3_2 = survey.gauge_objname; | 835 let str3_2 = survey.gauge_objname; |
831 let str4_1 = this.$gettext("Depth relativ to") + ": "; | 836 let str4_1 = this.$gettext("Depth relativ to") + ": "; |
832 let str4_2 = survey.depth_reference; | 837 let str4_2 = survey.depth_reference; |
833 if (!ZPGEXCEPTION) { | 838 if (!ZPGEXCEPTION) { |