From fc14249a311518aad1a3d365f9f1038cdeebe752 Mon Sep 17 00:00:00 2001 From: Riccardo Beltrami Date: Wed, 11 Dec 2024 11:49:04 +0100 Subject: [PATCH] hide text feature point geometry on print output --- 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 6a9a655eb..f455f6d3e 100644 --- a/assets/src/modules/Digitizing.js +++ b/assets/src/modules/Digitizing.js @@ -911,16 +911,17 @@ export default 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