Skip to content

Commit

Permalink
hide text feature point geometry on print output
Browse files Browse the repository at this point in the history
  • Loading branch information
mind84 committed Dec 11, 2024
1 parent 7c718e2 commit 918a029
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions assets/src/modules/Digitizing.js
Original file line number Diff line number Diff line change
Expand Up @@ -975,16 +975,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 =
`<Stroke>
<SvgParameter name="stroke">${color}</SvgParameter>
<SvgParameter name="stroke-opacity">1</SvgParameter>
<SvgParameter name="stroke-opacity">${1*opacityFactor}</SvgParameter>
<SvgParameter name="stroke-width">${this._strokeWidth}</SvgParameter>
</Stroke>
<Fill>
<SvgParameter name="fill">${color}</SvgParameter>
<SvgParameter name="fill-opacity">${this._fillOpacity}</SvgParameter>
<SvgParameter name="fill-opacity">${this._fillOpacity*opacityFactor}</SvgParameter>
</Fill>`;

// We consider LINESTRING and POLYGON together currently
Expand Down

0 comments on commit 918a029

Please sign in to comment.