From 349c6027415d727205829256434c88c0fdfb490a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 31 Jan 2024 14:38:13 +0100 Subject: [PATCH] :bug: Get projection in case is not register (#555) (#558) (cherry picked from commit 5a09a7565a41976c3d36e30c4409ee666d76945c) Co-authored-by: Francesco Boccacci --- src/components/MapControlGeocoding.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/MapControlGeocoding.vue b/src/components/MapControlGeocoding.vue index 8673fc1f5..3053ef932 100644 --- a/src/components/MapControlGeocoding.vue +++ b/src/components/MapControlGeocoding.vue @@ -468,8 +468,7 @@ export default { let transform = false; const [x, y, epsg] = (q || '').split(','); // get projection of coordinates is pass as third value - const projection = epsg && Projections.get({ epsg: `EPSG:${epsg.trim()}` }); - + const projection = epsg && await Projections.registerProjection(`EPSG:${epsg.trim()}`); // extract xCoord and yCoord if (isNumber(1 * x) && isNumber(1 * y)) { coordinates = [1 * x, 1 * y];