diff --git a/assets/src/modules/Digitizing.js b/assets/src/modules/Digitizing.js index 6a9a655eb6..f455f6d3ec 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