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

Added support for .poly files #65

Open kikiminou opened 5 years ago

kikiminou commented 5 years ago

Hello,

I have added basic support for .poly files.

POLY files are supported by Osmosis, mapsplit, osmconvert, osmchange and pbftoosm as a way of defining extraction polygons. See https://wiki.openstreetmap.org/wiki/Osmosis/Polygon_Filter_File_Format

I found useful to view this type of file into Leaflet thanks to Leaflet.FileLayer.

EDIT: jquery is required.