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

Added optional 'ext' parameter to the 'load' method #37

Closed opoto closed 7 years ago

opoto commented 7 years ago

This new paramter forces the file type when file does not have the expected extension. This is parameter is already used in 'loadData' method, both methods have now consistent signatures. This 'ext' parameter being optional, the method is still backward compatible with previous version. Added test for this new parameter.

leplatrem commented 7 years ago

Thanks!