-
Notifications
You must be signed in to change notification settings - Fork 48
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
React Example #32
Comments
Can you describe your issue so if I can help you out I will get in to the project |
In which file we are supposed to put this code? plugins: [ |
Hi @kaditya97, sorry for replying so late. I used single file for node and browser so this issue occurred. In a few days I will separate them and release the new version. I will also add a use case for react. |
@bugra9 thank you for addressing the issue, will be waiting for the release. |
@kaditya97, I have released a new version (v2.2.0). Can you try this version? Example Usage: import initGdalJs from 'gdal3.js';
import dataUrl from 'gdal3.js/dist/package/gdal3WebAssembly.data'
import wasmUrl from 'gdal3.js/dist/package/gdal3WebAssembly.wasm'
const paths = {
wasm: wasmUrl,
data: dataUrl,
};
initGdalJs({paths, useWorker: false}).then(Gdal => console.log(Object.keys(Gdal.drivers.raster).length + Object.keys(Gdal.drivers.vector).length)); |
@bugra9 Thank you, it is working now. |
I am trying to use it with react but get plenty of errors. Can someone help me with an example of it or guide me on how to set it properly.
The text was updated successfully, but these errors were encountered: