Skip to content
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

Shapefiles not Properly Responding #39

Open
brjwebb opened this issue May 19, 2016 · 0 comments
Open

Shapefiles not Properly Responding #39

brjwebb opened this issue May 19, 2016 · 0 comments

Comments

@brjwebb
Copy link

brjwebb commented May 19, 2016

Hi, I have an html file that includes the 2 script source, "leaflet.shpfile.js" and "shp.js". I then did the:
var shape = new L.Shapefile(" url of a zip file hosted in Dropbox ");
shape.addTo(map);

For some reason when I load the html and I go to inspect. There are no error messages and it seems like everything loaded correctly. However, I don't see the shape file. I checked to see if the zip file was the issue however it loaded correctly when I uploaded it to your example.
I also tried by uploading via locally as just a .zip file. This did not work, instead it gave me a "XMLHttpRequest cannot load" CORS issue.
I don't know if this would affect the code but I am also pulling from different libraries such as Turf, leaflet, and some others.

Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant