Skip to content

Commit

Permalink
🐛 Get projection in case is not register (#555) (#558)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5a09a75)

Co-authored-by: Francesco Boccacci <boccacci.francesco@gmail.com>
  • Loading branch information
github-actions[bot] and volterra79 authored Jan 31, 2024
1 parent c966171 commit 349c602
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/MapControlGeocoding.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 349c602

Please sign in to comment.