Skip to content

JS: Replace proj4js by proj4rs WASM #5799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import executeJSFromServer from './modules/ExecuteJSFromServer.js';

import olDep from './dependencies/ol.js';
import litHTMLDep from './dependencies/lit-html.js';
import proj4 from 'proj4';
import { proj4 } from 'proj4rs/proj4.js';

/**
* waitFor function returns waiting time in milliseconds
Expand Down
2 changes: 1 addition & 1 deletion assets/src/modules/Lizmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { Extent as olExtent, intersects as olExtentIntersects} from 'ol/extent.j
import { transform as olTransform, transformExtent as olTransformExtent, get as getProjection } from 'ol/proj.js';
import { register } from 'ol/proj/proj4.js';

import proj4 from 'proj4';
import { proj4 } from 'proj4rs/proj4.js';
import ProxyEvents from './ProxyEvents.js';

import { MapLayerLoadStatus } from './state/MapLayer.js';
Expand Down
6 changes: 5 additions & 1 deletion assets/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ import common from './webpack.common.js';

export default merge(common, {
mode: 'development',
devtool: 'eval-source-map'
devtool: 'eval-source-map',
experiments: {
asyncWebAssembly: true,
syncWebAssembly: true
},
});
6 changes: 5 additions & 1 deletion assets/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ import common from './webpack.common.js';

export default merge(common, {
mode: 'production',
devtool: 'source-map'
devtool: 'source-map',
experiments: {
asyncWebAssembly: true,
syncWebAssembly: true
},
});
8 changes: 7 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"ol-wfs-capabilities": "^2.0.0",
"playwright-ctrf-json-reporter": "^0.0.x",
"postcss-lit": "^1.2.0",
"proj4": "^2.11.0",
"proj4rs": "^0.1.8",
"shpjs": "^6.1.0",
"stylelint": "^16.15.x",
"stylelint-config-standard": "^38.0.x",
Expand Down
Loading