changeset 5476:453a33b0717d

GetLegendGraphics URL escaped ';' by '%3B'. The typical call according to https://docs.geoserver.org/latest/en/user/services/wms/get_legend_graphic/index.html contains semicolons as separators. Due to https://github.com/golang/go/issues/25192 we omit the direct usage of ';' in the geoserver call.
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 17 Aug 2021 16:51:43 +0200
parents 93af8d1ea09f
children a3d46cee9f69
files client/src/components/layers/Layerselect.vue client/src/components/layers/LegendElement.vue
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/layers/Layerselect.vue	Tue Jul 20 18:54:35 2021 +0200
+++ b/client/src/components/layers/Layerselect.vue	Tue Aug 17 16:51:43 2021 +0200
@@ -158,7 +158,7 @@
     },
     loadLegendImage(layer, storeTarget) {
       HTTP.get(
-        `/internal/wms?REQUEST=GetLegendGraphic&VERSION=1.3.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=${layer}&legend_options=columns:4;fontAntiAliasing:true&SCALE=4000`,
+        `/internal/wms?REQUEST=GetLegendGraphic&VERSION=1.3.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=${layer}&legend_options=columns:4%3BfontAntiAliasing:true&SCALE=4000`,
         {
           headers: {
             Accept: "image/png",
--- a/client/src/components/layers/LegendElement.vue	Tue Jul 20 18:54:35 2021 +0200
+++ b/client/src/components/layers/LegendElement.vue	Tue Aug 17 16:51:43 2021 +0200
@@ -122,12 +122,12 @@
         this.url =
           `/internal/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=` +
           this.layer.getSource().getParams().LAYERS +
-          `&legend_options=columns:4;fontAntiAliasing:true`;
+          `&legend_options=columns:4%3BfontAntiAliasing:true`;
       } else {
         this.url =
           `/internal/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&SCALE=80000&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=` +
           this.layer.getSource().getParams().LAYERS +
-          `&legend_options=columns:1;fontAntiAliasing:true;forceLabels:off`;
+          `&legend_options=columns:1%3BfontAntiAliasing:true%3BforceLabels:off`;
       }
 
       this.loadImageSrc();