bugra9 / gdal3.js

Convert raster and vector geospatial data to various formats and coordinate systems entirely in the browser.
https://gdal3.js.org
GNU Lesser General Public License v2.1
315 stars 48 forks source link

wasm unsupported MIME type #54

Closed delebash closed 9 months ago

delebash commented 1 year ago

Just info on wasm

If you get this error then you need to add mime type wasm to your server.

for .htaccess add below line

AddType application/wasm wasm

For me I am using Namecheap shared hosting and even after adding the correct mime type gdal would not initialize and just hung trying to load.

I am using the Vue + Vite setup.

Not sure what is wrong but to work around the problem I just used the cdn method and all is well.

Thanks for making gdal for the web!!

bugra9 commented 10 months ago

@delebash, thanks for the information.