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