Skip to content

Commit

Permalink
Merge pull request #1211 from geoadmin/bugfix-PB-1358-cant-print-kmls
Browse files Browse the repository at this point in the history
PB 1358: fix issue with printing imported KMLS
  • Loading branch information
ltkum authored Jan 20, 2025
2 parents e38e47d + 43df627 commit 205b23a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/print.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ class GeoAdminCustomizer extends BaseCustomizer {
if (symbolizer.strokeWidth) {
symbolizer.strokeWidth = adjustWidth(symbolizer.strokeWidth, this.printResolution)
}
symbolizer.graphicXOffset = symbolizer.graphicXOffset ?? 0
symbolizer.graphicYOffset = symbolizer.graphicYOffset ?? 0
}

/**
Expand Down Expand Up @@ -134,7 +136,7 @@ class GeoAdminCustomizer extends BaseCustomizer {
)
: 0
// don't ask why it works, but that's the best I could do.
symbolizer.gaphicYOffset = Math.round(1000 * symbolizer.gaphicYOffset ?? 0) / 1000
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 205b23a

Please sign in to comment.