Skip to content

Commit

Permalink
hide text feature point geometry on print output (#5108)
Browse files Browse the repository at this point in the history
  • Loading branch information
mind84 authored Dec 12, 2024
1 parent 7f53e87 commit 2fc913e
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 @@ -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 =
`<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 2fc913e

Please sign in to comment.