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

Not running with Leaflet v1.1.0 #46

Closed ppete2 closed 6 years ago

ppete2 commented 6 years ago

This plugin is not running with new Leaflet v1.1.0 Besides some warning on the JS-console it creates a Type Error "L.Util.fileLoader is not a function"

Would be great if somebody is able to fix it.

leplatrem commented 6 years ago

@thorinii submitted a patch in #45. Now waiting for makinacorpus to merge and release. In the meantine you can use his branch:

https://cdn.rawgit.com/thorinii/Leaflet.FileLayer/588d5a401e63e386b4d929a488ce2569c0619cda/src/leaflet.filelayer.js

SBats commented 6 years ago

The npm version has been updated thanks to @thorinii fix on #45!

okvittem commented 5 years ago

Current leaflet-filelayer@1.2.0 does not install L.Control.fileLayerLoad function. Whereas 0.4.0 works as expected but logs message "Deprecated include of L.Mixin.Events". Tried with different leaflet from 1.0.0 to 1.4.3.