From 28130af9471a27ace4adb2c2209c468ec196cbb0 Mon Sep 17 00:00:00 2001 From: Renaud Michaelis Date: Mon, 16 Jan 2023 20:18:13 +0100 Subject: [PATCH] Numeric not string --- .../static-ngeo/js/locationinfo/LocationinfoController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geoportal/geoportailv3_geoportal/static-ngeo/js/locationinfo/LocationinfoController.js b/geoportal/geoportailv3_geoportal/static-ngeo/js/locationinfo/LocationinfoController.js index d9b72f810..ee86e3a03 100644 --- a/geoportal/geoportailv3_geoportal/static-ngeo/js/locationinfo/LocationinfoController.js +++ b/geoportal/geoportailv3_geoportal/static-ngeo/js/locationinfo/LocationinfoController.js @@ -325,9 +325,9 @@ const exports = function( if (x !== undefined && y !== undefined) { var coordinate = version === 3 ? - /** @type {ol.Coordinate} */ (transform([x, y], srs, + /** @type {ol.Coordinate} */ (transform([parseFloat(x), parseFloat(y)], srs, this['map'].getView().getProjection())) : - /** @type {ol.Coordinate} */ (transform([y, x], srs, + /** @type {ol.Coordinate} */ (transform([parseFloat(y), parseFloat(x)], srs, this['map'].getView().getProjection())); this.setClickCordinate_(coordinate); this.loadInfoPane_();