Skip to content

Commit

Permalink
Merge pull request #3199 from camptocamp/fix_print_halo
Browse files Browse the repository at this point in the history
Fix printed halo size
  • Loading branch information
ger-benjamin committed Dec 4, 2017
2 parents 2cfd4dc + d6b77d8 commit fa558f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/print.js
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,8 @@ ngeo.Print.prototype.encodeTextStyle_ = function(symbolizers, textStyle) {
symbolizer.haloOpacity = strokeColorRgba[3];
const width = strokeStyle.getWidth();
if (width !== undefined) {
symbolizer.haloRadius = width;
// Width is a stroke, radius a radius, so divide by 2
symbolizer.haloRadius = width / 2;
}
}

Expand Down

0 comments on commit fa558f1

Please sign in to comment.