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

Cannot read property 'editing' of undefined #43

Closed ldoloscan closed 6 years ago

ldoloscan commented 7 years ago

Hello, I'm getting an error when i try to load file second time Cannot read property 'editing' of undefined

What could it possibly be ?

ldoloscan commented 7 years ago

Sorry, my bad, i've done something wrong. Btw, is it possible to get latlngs from imported .kml ?

Thanks.

SBats commented 6 years ago

Hi, you can access all the imported layers properties through the event.layer properties in the loaded event. Please see an updated example in the README -> Usage -> Events part.