You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: