Skip to content

Commit

Permalink
Merge pull request #1214 from geoadmin/fix-PB-1358-fix-printing-for-m…
Browse files Browse the repository at this point in the history
…easures

PB 1358: Allow printing measures again
  • Loading branch information
pakb authored Jan 22, 2025
2 parents d9b3be2 + f9bc53b commit 97f35ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/print.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ class GeoAdminCustomizer extends BaseCustomizer {
this.printResolution
)
: 0
// don't ask why it works, but that's the best I could do.
symbolizer.graphicYOffset = Math.round(1000 * symbolizer.graphicYOffset ?? 0) / 1000
// if there is no graphicYOffset, we can't print points
symbolizer.graphicYOffset = Math.round(1000 * (symbolizer.graphicYOffset ?? 0)) / 1000
}
if (size) {
symbolizer.graphicWidth = adjustWidth(size[0] * scale, this.printResolution)
Expand Down

0 comments on commit 97f35ef

Please sign in to comment.