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

data:loaded could return the original data too #24

Open ccloquet opened 8 years ago

ccloquet commented 8 years ago

On line 51,

the data:loaded event could also return the original data, so it can be further processed/stored in the app

this.fire('data:loaded', 
    {
        layer: layer, 
        filename: file.name, 
        format: ext, 
        result:e.target.result
    }
);
manuamador commented 6 years ago

Nice addition, very useful.