makinacorpus / Leaflet.FileLayer

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

Added abitlity to load from an already loaded file content (e.g. loaded from URL) #34

Closed opoto closed 7 years ago

opoto commented 7 years ago

Added:

Sample usage (with JQuery):

  $.get('https://my.server.com/?id=89798747&type=3', function(data){
    fileloader.loadData(data, '89798747', 'gpx');
  });
opoto commented 7 years ago

Hi. Thanks for the review. I fixed eslint errors you listed, plus no-unneeded-ternary and consistent-return errors that were also reported. I ignored warnings (which anyway are not related to my changes), and left the no-undef and global-require errors which are not related to my changes neither.

SBats commented 7 years ago

Wonderfull ! Thank you again for this great contribution !