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

KML styling #69

Open johnd0e opened 5 years ago

johnd0e commented 5 years ago

togeojson library converts KML styles to geojson simplestyle (spec). It is not explicitly mentioned in docs, but it's just mapbox standard. You can see it in code, e.g. search for 'stroke': (https://github.com/mapbox/togeojson/blob/master/togeojson.js#L267 etc).

It would be great if FileLayer provide corresponding function for styling. Sample: https://github.com/mapbox/mapbox.js/blob/publisher-production/src/simplestyle.js