comparison client/src/components/layers/LegendElement.vue @ 4315:ee4c47c3e7b2

legend: request distancemarks axis image at a specific scale to get correct styling
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 03 Sep 2019 17:47:57 +0200
parents e4ff09ebc2c3
children 827157bbc2a8
comparison
equal deleted inserted replaced
4314:c3b5cf2f200a 4315:ee4c47c3e7b2
111 `/internal/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=` + 111 `/internal/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=` +
112 this.layer.getSource().getParams().LAYERS + 112 this.layer.getSource().getParams().LAYERS +
113 `&legend_options=columns:4;fontAntiAliasing:true`; 113 `&legend_options=columns:4;fontAntiAliasing:true`;
114 } else { 114 } else {
115 this.url = 115 this.url =
116 `/internal/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=` + 116 `/internal/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&SCALE=80000&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=` +
117 this.layer.getSource().getParams().LAYERS + 117 this.layer.getSource().getParams().LAYERS +
118 `&legend_options=columns:1;fontAntiAliasing:true;forceLabels:off`; 118 `&legend_options=columns:1;fontAntiAliasing:true;forceLabels:off`;
119 } 119 }
120 120
121 this.loadImageSrc(); 121 this.loadImageSrc();