Skip to content

Commit

Permalink
🐛 Get projection in case is not register
Browse files Browse the repository at this point in the history
  • Loading branch information
volterra79 committed Jan 31, 2024
1 parent 889e374 commit b75c6f4
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 @@ -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];
Expand Down

0 comments on commit b75c6f4

Please sign in to comment.