mapbox / tokml

Convert GeoJSON to KML.

Home Page:http://mapbox.github.io/tokml/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pretty print of resultant kml/xml data

birdage opened this issue · comments

right now the KML data comes out completely unformatted, it would be good to have a pretty print option for the resultant KML string.

could be as easy as adding in https://github.com/vkiryukhin/pretty-data, and an option flag. Happy to make the PR if wanted....?

https://www.npmjs.com/package/gtran-kml is a wrapper of the tokml library and I have added the pretty option to prettify output.