From 88cdf539b819f25dc60f728d98b3f68119800565 Mon Sep 17 00:00:00 2001 From: Ismail Sunni Date: Wed, 10 Jul 2024 13:56:40 +0700 Subject: [PATCH] PB-784: Use smaller map resolution for grid to avoid coordinate label cut off. --- src/api/print.api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/print.api.js b/src/api/print.api.js index 951adebf7..f574e8111 100644 --- a/src/api/print.api.js +++ b/src/api/print.api.js @@ -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), }, }) }