calvinmetcalf / shapefile-js

Convert a Shapefile to GeoJSON. Not many caveats.
http://calvinmetcalf.github.io/shapefile-js/
715 stars 228 forks source link

unable to load locally saved shape file #146

Closed KanupriyaGoel closed 2 years ago

KanupriyaGoel commented 3 years ago

Hi,

I am trying to give path for a file on my system to be read and loaded onto the map but I get error that path should contain Http or Https. As per documentation I think this can be done, is this not correct?

Thanks, Kanupriya

calvinmetcalf commented 3 years ago

You need to load it from a web url not one that starts with file:// try running a small web server via something like npx serve

On Mon, Dec 7, 2020, 6:36 AM KanupriyaGoel notifications@github.com wrote:

Hi,

I am trying to give path for a file on my system to be read and loaded onto the map but I get error that path should contain Http or Https. As per documentation I think this can be done, is this not correct?

Thanks, Kanupriya

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/calvinmetcalf/shapefile-js/issues/146, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAITRHZCLDZMQGINXKRBJJTSTS43LANCNFSM4UQKSYHQ .