makinacorpus / Leaflet.FileLayer

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

Option - show filename in tool tip #71

Closed a-lurker closed 5 years ago

a-lurker commented 5 years ago

Forget the following - I worked out to do this using 'data:loaded'

If you load a lot of files it can be difficult to know which line is which. So an option to show the filename in the tooltip would be useful. Using the sticky option: .bindTooltip('', {sticky: true}) the tooltip will appear anywhere on the line.