-
Notifications
You must be signed in to change notification settings - Fork 25
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
Example pbf.html is Broken #29
Comments
Looks like browserify can't include {"bytebuffer":"bytebuffer","fs":undefined,"path":undefined}]} |
Seems like my hack to include the minified files is no longer working with the latest browserify:
As a workaround you can use:
Need to see what I can do about this. |
Thanks! The workaround works for now. |
The reason for wanting to require the already minified files is that But now I have done some quick manual testing and could not observe a significant performance improvement. I also wanted to look into compiling across all modules instead of using the individual builds, but don't know if that would be worth the effort. So for now I'm simply using minifyify on the sources. Here is the build workaround used for testing:
|
I did follow your workaround so far, Uncaught TypeError: Cannot read property 'decode' of undefined (in osm-read-pbf.js):
Looks like:
does'nt instantiate correctly ... (i.e. missing Member '.BlobHeader') Would you please upload (e.g. to './dist') any working files from your functional workaround: PLEASE ... ;-) |
Sorry about this. Moving forward, I now have merged the pending PR #31. This fixes the build, so I also have committed the |
It is not possible to run the
example/pbf.html
.I followed the instructions and run
npm run browserify
to create the fileosm-read-pbf.js
. When opening the example HTML it will throw the following errors:The text was updated successfully, but these errors were encountered: