makinacorpus / Leaflet.FileLayer

Loads files locally (GeoJSON, KML, GPX) as layers using HTML5 File API
http://makinacorpus.github.io/Leaflet.FileLayer/
MIT License
273 stars 91 forks source link

Load files from URL #91

Open PedroVenancio opened 2 years ago

PedroVenancio commented 2 years ago

Hi,

I don't know if this is possible using the HTML5 FileReader API, but I would like to pass the location of the file to load in the leaflet app URL, instead of using the button or the drag & drop to load a local file. Something like https://example.html?&file=URL_to_GeoJSON_file.json

Is this possible with FileLayer?

Thank you very much!