Mercurial > gemma
comparison client/src/components/Pdftool.vue @ 3044:c71373594719
client: map: prepared store to hold multiple map objects
This will be necessary to sync maps, toggle layers per map, etc. Therefore the methods to move the map
(moveToExtent, etc.) became actions instead of mutations.
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Sat, 13 Apr 2019 16:02:06 +0200 |
parents | 44493664d40e |
children | 0374197c384f |
comparison
equal
deleted
inserted
replaced
3043:de75404cb5fc | 3044:c71373594719 |
---|---|
91 * Author(s): | 91 * Author(s): |
92 * * Markus Kottländer <markus.kottlaender@intevation.de> | 92 * * Markus Kottländer <markus.kottlaender@intevation.de> |
93 * * Bernhard E. Reiter <bernhard@intevation.de> | 93 * * Bernhard E. Reiter <bernhard@intevation.de> |
94 * * Fadi Abbud <fadi.abbud@intevation.de> | 94 * * Fadi Abbud <fadi.abbud@intevation.de> |
95 */ | 95 */ |
96 import { mapState } from "vuex"; | 96 import { mapState, mapGetters } from "vuex"; |
97 import jsPDF from "jspdf"; | 97 import jsPDF from "jspdf"; |
98 import "@/lib/font-linbiolinum"; | 98 import "@/lib/font-linbiolinum"; |
99 import { getPointResolution } from "ol/proj"; | 99 import { getPointResolution } from "ol/proj"; |
100 import locale2 from "locale2"; | 100 import locale2 from "locale2"; |
101 import { HTTP } from "@/lib/http"; | 101 import { HTTP } from "@/lib/http"; |
163 }; | 163 }; |
164 }, | 164 }, |
165 computed: { | 165 computed: { |
166 ...mapState("application", ["showPdfTool", "logoForPDF"]), | 166 ...mapState("application", ["showPdfTool", "logoForPDF"]), |
167 ...mapState("bottlenecks", ["selectedBottleneck", "selectedSurvey"]), | 167 ...mapState("bottlenecks", ["selectedBottleneck", "selectedSurvey"]), |
168 ...mapState("map", ["openLayersMap", "isolinesLegendImgDataURL"]), | 168 ...mapState("map", ["isolinesLegendImgDataURL"]), |
169 ...mapState("user", ["user"]), | 169 ...mapState("user", ["user"]), |
170 ...mapGetters("map", ["openLayersMap"]), | |
170 generatePdfLable() { | 171 generatePdfLable() { |
171 return this.$gettext("Generate PDF"); | 172 return this.$gettext("Generate PDF"); |
172 }, | 173 }, |
173 filename() { | 174 filename() { |
174 let date = new Date() | 175 let date = new Date() |