From b75c6f4c43f7b7f7a0afbe8ce91485f96788b904 Mon Sep 17 00:00:00 2001 From: volterra79 Date: Wed, 31 Jan 2024 12:19:27 +0100 Subject: [PATCH] :bug: Get projection in case is not register --- 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 92236f98e..d449c6006 100644 --- a/src/components/MapControlGeocoding.vue +++ b/src/components/MapControlGeocoding.vue @@ -467,8 +467,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];