Skip to content

Commit

Permalink
Merge pull request #999 from geoadmin/pb-784-coordinate-grid-cut-off
Browse files Browse the repository at this point in the history
PB-784: Use smaller map resolution for grid to avoid coordinate label… - #minor
  • Loading branch information
ismailsunni authored Jul 10, 2024
2 parents 01adc69 + 88cdf53 commit 812869d
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 @@ -362,7 +362,9 @@ async function transformOlMapToPrintParams(olMap, config) {
styles: [''],
customParams: {
TRANSPARENT: true,
MAP_RESOLUTION: dpi,
// Notes(IS): The coordinate grid is cutted off if we use the same resolution as the DPI.
// This value is a bit smaller than the DPI to avoid this issue.
MAP_RESOLUTION: Math.floor(dpi * 0.85),
},
})
}
Expand Down

0 comments on commit 812869d

Please sign in to comment.