Skip to content

Commit

Permalink
Merge pull request #5119 from 3liz/backport-5108-to-release_3_8
Browse files Browse the repository at this point in the history
[Backport release_3_8] [Bugfix] Digitizing: hide text feature point geometry on print output
  • Loading branch information
Gustry authored Dec 12, 2024
2 parents 1a58918 + fc14249 commit e8a1bdc
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 @@ -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 =
`<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 e8a1bdc

Please sign in to comment.