From a9b7c25ee65a7c08f1f5dd75c9800ad5d4bfa856 Mon Sep 17 00:00:00 2001 From: Riccardo Beltrami Date: Wed, 22 Nov 2023 16:44:05 +0100 Subject: [PATCH] [Fix] round the 'I' and 'J' paramters of WMS GetFeatureInfo service --- assets/src/modules/Popup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/src/modules/Popup.js b/assets/src/modules/Popup.js index 8ad0d7ae9d..8d16f434e0 100644 --- a/assets/src/modules/Popup.js +++ b/assets/src/modules/Popup.js @@ -77,8 +77,8 @@ export default class Popup { FEATURE_COUNT: 10, WIDTH: width, HEIGHT: height, - I: evt.xy.x, - J: evt.xy.y, + I: Math.round(evt.xy.x), + J: Math.round(evt.xy.y), FI_POINT_TOLERANCE: this._pointTolerance, FI_LINE_TOLERANCE: this._lineTolerance, FI_POLYGON_TOLERANCE: this._polygonTolerance