Skip to content

Commit

Permalink
Digitizing
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Jan 20, 2025
1 parent 78da25a commit 88e4208
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/src/modules/Digitizing.js
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ export class Digitizing {
// return (e) => {
// const buffershp = e.target.result;
// shp(buffershp).then(response => {
// let OL6features = (new GeoJSON()).readFeatures(response, {featureProjection: this._projection});
// let OL6features = (new GeoJSON()).readFeatures(response, {featureProjection: this._lizmap3.map.getProjection()});

// if (OL6features) {
// // Add imported features to map and zoom to their extent
Expand Down Expand Up @@ -1494,10 +1494,10 @@ export class Digitizing {
register(proj4);
}

features = reprojAll(features, projFGB, this._projection);
features = reprojAll(features, projFGB, this._lizmap3.map.getProjection());
} else {
this._lizmap3.addMessage(lizDict["digitizing.import.metadata.error"] + " : " +
this._projection
this._lizmap3.map.getProjection()
, 'info'
, true)
}
Expand Down

0 comments on commit 88e4208

Please sign in to comment.