Skip to content

Replacements for tokml

@placemarkio/tokml

@placemarkio/tokml is a maintained alternative for tokml package.

Example:

js
import tokml from 'tokml'
import { toKML } from '@placemarkio/tokml'

const geojson = {
  type: 'FeatureCollection',
  features: [
    {
      type: 'Feature',
      geometry: { type: 'Point', coordinates: [1, 2] },
      properties: { name: 'Marker' }
    }
  ]
}

const kml = tokml(geojson) 
const kml = toKML(geojson) 

Released under the MIT License. (1f304c6e)