From 07a289013a334aefbf143754f11a7c7e2d472d5a Mon Sep 17 00:00:00 2001 From: mind84 Date: Thu, 12 Dec 2024 09:50:31 +0100 Subject: [PATCH] hide text feature point geometry on print output (#5108) --- assets/src/modules/Digitizing.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/src/modules/Digitizing.js b/assets/src/modules/Digitizing.js index e1852953b4..2ac16b4988 100644 --- a/assets/src/modules/Digitizing.js +++ b/assets/src/modules/Digitizing.js @@ -981,16 +981,17 @@ export class Digitizing { return null; } const color = this.featureDrawn[index].get('color') || this._drawColor; + let opacityFactor = this.featureDrawn[index].get('mode') == 'textonly' ? 0 : 1; let symbolizer = ''; let strokeAndFill = ` ${color} - 1 + ${1*opacityFactor} ${this._strokeWidth} ${color} - ${this._fillOpacity} + ${this._fillOpacity*opacityFactor} `; // We consider LINESTRING and POLYGON together currently