comparison client/src/components/Pdftool.vue @ 5433:0c8342c7ec8b marking-single-beam

Fix for PDF-Tool.
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 12 Jul 2021 17:56:01 +0200
parents 67ffa7517888
children 789cffef3362
comparison
equal deleted inserted replaced
5432:776e34886471 5433:0c8342c7ec8b
276 const currentExtent = map.getView().calculateExtent(map.getSize()); 276 const currentExtent = map.getView().calculateExtent(map.getSize());
277 const params = { 277 const params = {
278 srsName: "EPSG:3857", 278 srsName: "EPSG:3857",
279 featureNS: "gemma", 279 featureNS: "gemma",
280 featurePrefix: "gemma", 280 featurePrefix: "gemma",
281 featureTypes: ["sounding_results"], 281 featureTypes: ["sounding_results_areas_geoserver"],
282 outputFormat: "application/json", 282 outputFormat: "application/json",
283 bbox: currentExtent, 283 bbox: currentExtent,
284 geometryName: "areas" 284 geometryName: "areas"
285 }; 285 };
286 if (this.selectedSurvey) { 286 const survey = this.selectedSurvey;
287 debugger;
288 if (survey) {
289 if (survey["survey_type"] === "marking") {
290 params["featureTypes"] = [
291 "sounding_results_marking_points_geoserver"
292 ];
293 params["geometryName"] = "points";
294 }
287 params["filter"] = equalToFilter( 295 params["filter"] = equalToFilter(
288 "bottleneck_id", 296 "bottleneck_id",
289 this.selectedSurvey.bottleneck_id 297 this.selectedSurvey.bottleneck_id
290 ); 298 );
291 } 299 }