Skip to content

Commit

Permalink
🐛 Get projection in case is not register (#555)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5a09a75)
  • Loading branch information
volterra79 authored and github-actions[bot] committed Jan 31, 2024
1 parent c966171 commit 809cdf5
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 809cdf5

Please sign in to comment.