-
Notifications
You must be signed in to change notification settings - Fork 232
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
Projected small demo doesn't work: Invalid URL #180
Comments
try something like this
|
This doesn't work for me. I still get
If I switch to an absolute path, I get a slightly different error:
I even get this issue when I just create a node shell and import shpjs and pass it literally any file. Or any directory with a prefix of a file with no extension. Has anyone encountered this issue before? I've tried my own shapefiles, I've tried zip files, of shapefiles. I've tried changing the directory where the files are written to/read from. Any suggestions? |
@Richard-Walter v5.0.2 should fix this, there was previously a bug with reletive urls @rgoggins it's hard to tell what exactly is going on because the error is in your file |
Clicking on your Projected small demo I get an error in the chrome/edge browser console:
TypeError: Failed to construct 'URL': Invalid URL
at checkSuffix (shp.js:14498:15)
at Function.shp.getShapefile (shp.js:14505:7)
at shp (shp.js:14399:14)
at proj-small.html:38:3
Same isse happens with some of your other demos. Any idea what is causing this?
The text was updated successfully, but these errors were encountered: