ngageoint / geopackage-js

GeoPackage JavaScript Library
http://ngageoint.github.io/geopackage-js/
MIT License
304 stars 78 forks source link

Create fails in browser #183

Closed hwbllmnn closed 1 year ago

hwbllmnn commented 1 year ago

When I try to run GeoPackage.GeoPackageAPI.create() in the browser it fails with Error: Unable to create GeoPackage.. The root error seems to be Failed to create adapter TypeError: Cannot read properties of undefined (reading 'startsWith'). Any ideas what I'm doing wrong? According to the API docs the argument to create is ignored/not necessary when running in the browser.

hwbllmnn commented 1 year ago

Never mind, I didn't initialize the setSqljsWasmLocateFile properly.