changeset 5173:58ef2c163d14 detectvisiblesoundings

use correct projection. console.log removed.
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 21 Apr 2020 11:30:39 +0200
parents d750fb514a82
children b73e8cc494f6
files client/src/components/Pdftool.vue
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/Pdftool.vue	Tue Apr 21 09:15:24 2020 +0200
+++ b/client/src/components/Pdftool.vue	Tue Apr 21 11:30:39 2020 +0200
@@ -267,7 +267,7 @@
         const map = this.openLayersMap();
         const currentExtent = map.getView().calculateExtent(map.getSize());
         const getSoundingResultFeatures = new WFS().writeGetFeature({
-          srsName: "EPSG:4326",
+          srsName: "EPSG:3857",
           featureNS: "gemma",
           featurePrefix: "gemma",
           featureTypes: ["sounding_results_areas_geoserver"],
@@ -329,7 +329,6 @@
        * Details: https://gis.stackexchange.com/questions/328933/openlayers-generating-clientside-pdfs
        *
        */
-      console.log(soundingsVisible);
       this.readyToGenerate = false;
       if (this.form.format !== "portrait") {
         this.pdf.width = paperSizes[this.form.paperSize][0];